class Groonga::Command::Tokenize
A command class that represents `tokenize` command.
@since 1.0.6
Public Class Methods
command_name()
click to toggle source
# File lib/groonga/command/tokenize.rb, line 27 def command_name "tokenize" end
parameter_names()
click to toggle source
# File lib/groonga/command/tokenize.rb, line 31 def parameter_names [ :tokenizer, :string, :normalizer, :flags, :mode, :token_filters, ] end
Public Instance Methods
flags()
click to toggle source
@return [Array<String>] 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.
@since 1.0.6
# File lib/groonga/command/tokenize.rb, line 69 def flags @flags ||= flags_value(:flags) end
mode()
click to toggle source
@return [String] `mode` parameter value.
@since 1.1.0
# File lib/groonga/command/tokenize.rb, line 76 def mode self[:mode] end
normalizer()
click to toggle source
@return [String] `normalizer` parameter value. @since 1.0.6
# File lib/groonga/command/tokenize.rb, line 59 def normalizer self[:normalizer] end
string()
click to toggle source
@return [String] `string` parameter value. @since 1.0.6
# File lib/groonga/command/tokenize.rb, line 53 def string self[:string] end
token_filters()
click to toggle source
@return [Array<String>] An array of token filter specified in
`token_filters` parameter value. This array is extracted by parsing `token_filters` parameter value. If `token_filters` parameter value is nil or empty, an empty array is returned.
@since 1.1.0
# File lib/groonga/command/tokenize.rb, line 86 def token_filters @token_filters ||= array_value(:token_filters) end
tokenizer()
click to toggle source
@return [String] `tokenizer` parameter value. @since 1.0.6
# File lib/groonga/command/tokenize.rb, line 47 def tokenizer self[:tokenizer] end