Kouhei Sutou
null+****@clear*****
Mon Aug 8 11:32:49 JST 2016
Kouhei Sutou 2016-08-08 11:32:49 +0900 (Mon, 08 Aug 2016) New Revision: d4f481af45f1e653aef3718b21ec1813dadf62ac https://github.com/groonga/groonga-command/commit/d4f481af45f1e653aef3718b21ec1813dadf62ac Message: Add TableCreate#name Modified files: lib/groonga/command/table-create.rb test/command/test-table-create.rb Modified: lib/groonga/command/table-create.rb (+7 -0) =================================================================== --- lib/groonga/command/table-create.rb 2016-08-08 11:32:31 +0900 (2d9a6c9) +++ lib/groonga/command/table-create.rb 2016-08-08 11:32:49 +0900 (35efd93) @@ -39,6 +39,13 @@ module Groonga Command.register(command_name, self) + # @return [String] The table name. + # + # @since 1.2.4 + def name + self[:name] + end + # @return [String, nil] Key type name, nil for array no key table. # @since 1.0.7 def key_type Modified: test/command/test-table-create.rb (+8 -0) =================================================================== --- test/command/test-table-create.rb 2016-08-08 11:32:31 +0900 (e3b9121) +++ test/command/test-table-create.rb 2016-08-08 11:32:49 +0900 (45696eb) @@ -54,6 +54,14 @@ class TableCreateCommandTest < Test::Unit::TestCase end end + class NameTest < self + def test_reader + command = table_create_command({"name" => "Users"}) + assert_equal("Users", + command.name) + end + end + class KeyTypeTest < self def test_specified command = table_create_command({"key_type" => "ShortText"}) -------------- next part -------------- HTML����������������������������...Download