Class: Groonga::Command::TableTokenize
- Defined in:
- lib/groonga/command/table-tokenize.rb
Overview
A command class that represents table_tokenize
command.
Instance Attribute Summary
Attributes inherited from Base
#arguments, #name, #original_format, #original_source, #path_prefix
Class Method Summary collapse
Instance Method Summary collapse
-
#flags ⇒ Array<String>
An array of flag specified in
flags
parameter value. -
#mode ⇒ String
mode
parameter value. -
#string ⇒ String
string
parameter value. -
#table ⇒ String
table
parameter value.
Methods inherited from Base
#==, #[], #[]=, #command_format?, #initialize, #key?, #output_type, #to_command_format, #to_uri_format, #uri_format?
Constructor Details
This class inherits a constructor from Groonga::Command::Base
Class Method Details
.parameter_names ⇒ Object
28 29 30 31 32 33 34 35 |
# File 'lib/groonga/command/table-tokenize.rb', line 28 def parameter_names [ :table, :string, :flags, :mode, ] end |
Instance Method Details
#flags ⇒ Array<String>
Returns An array of flag specified in flags
parameter value. This array is extracted by parsing flags
parameter value. If flags
parameter value is nil or empty,
an empty array is returned.
58 59 60 |
# File 'lib/groonga/command/table-tokenize.rb', line 58 def flags @flags ||= (self[:flags] || "").split(/\s*[| ]\s*/) end |
#mode ⇒ String
Returns mode
parameter value.
65 66 67 |
# File 'lib/groonga/command/table-tokenize.rb', line 65 def mode self[:mode] end |
#string ⇒ String
Returns string
parameter value.
48 49 50 |
# File 'lib/groonga/command/table-tokenize.rb', line 48 def string self[:string] end |
#table ⇒ String
Returns table
parameter value.
41 42 43 |
# File 'lib/groonga/command/table-tokenize.rb', line 41 def table self[:table] end |