Class: Groonga::Command::Normalize
- Defined in:
- lib/groonga/command/normalize.rb
Overview
A command class that represents normalize
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 flags specified in
flags
parameter value. -
#normalizer ⇒ String
normalizer
parameter value. -
#string ⇒ String
string
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
30 31 32 33 34 35 36 |
# File 'lib/groonga/command/normalize.rb', line 30 def parameter_names [ :normalizer, :string, :flags, ] end |
Instance Method Details
#flags ⇒ Array<String>
Returns An array of flags 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.
57 58 59 |
# File 'lib/groonga/command/normalize.rb', line 57 def flags @flags ||= (self[:flags] || "").split(/\s*[| ]\s*/) end |
#normalizer ⇒ String
Returns normalizer
parameter value.
41 42 43 |
# File 'lib/groonga/command/normalize.rb', line 41 def normalizer self[:normalizer] end |
#string ⇒ String
Returns string
parameter value.
47 48 49 |
# File 'lib/groonga/command/normalize.rb', line 47 def string self[:string] end |