Kouhei Sutou
null+****@clear*****
Wed Jan 13 17:21:42 JST 2016
Kouhei Sutou 2014-03-14 18:41:25 +0900 (Fri, 14 Mar 2014) New Revision: 9d1194df3f59b45344a833f285f3cb309ddfd3fa https://github.com/groonga/groonga-command/commit/9d1194df3f59b45344a833f285f3cb309ddfd3fa Message: Add ColumnCreate#table Modified files: lib/groonga/command/column-create.rb test/command/test-column-create.rb Modified: lib/groonga/command/column-create.rb (+6 -0) =================================================================== --- lib/groonga/command/column-create.rb 2014-03-14 18:02:41 +0900 (5d6ca3c) +++ lib/groonga/command/column-create.rb 2014-03-14 18:41:25 +0900 (0b7a109) @@ -35,6 +35,12 @@ module Groonga end end + # @return [String] table name. + # @since 1.0.7 + def table + self[:table] + end + def flags @flags ||= (self[:flags] || "").split(/\s*\|\s*/) end Modified: test/command/test-column-create.rb (+8 -0) =================================================================== --- test/command/test-column-create.rb 2014-03-14 18:02:41 +0900 (eaddfcf) +++ test/command/test-column-create.rb 2014-03-14 18:41:25 +0900 (7f80848) @@ -44,6 +44,14 @@ class ColumnCreateCommandTest < Test::Unit::TestCase end end + class TableTest < self + def test_reader + command = column_create_command({"table" => "Logs"}) + assert_equal("Logs", + command.table) + end + end + class FlagsTest < self def test_multiple command = column_create_command({"flags" => "COLUMN_INDEX|WITH_POSITION"}) -------------- next part -------------- HTML����������������������������...Download