Class: Havox::Translator

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/havox/classes/translator.rb

Instance Method Summary collapse

Instance Method Details

#actions_to(syntax, actions_array, opts = {}) ⇒ Object



18
19
20
# File 'lib/havox/classes/translator.rb', line 18

def actions_to(syntax, actions_array, opts = {})
  translation_module(syntax)::Actions.treat(actions_array, opts)
end

#fields_to(syntax) ⇒ Object



10
11
12
# File 'lib/havox/classes/translator.rb', line 10

def fields_to(syntax)
  translation_module(syntax)::Matches::FIELDS
end

#matches_to(syntax, matches_array) ⇒ Object



14
15
16
# File 'lib/havox/classes/translator.rb', line 14

def matches_to(syntax, matches_array)
  translation_module(syntax)::Matches.treat(matches_array)
end