Class: Qipowl::Bowlers::Ispru

Inherits:
Bowler show all
Defined in:
lib/qipowl/bowlers/i_sp_ru.rb

Constant Summary collapse

LANG_FROM =

FIXME UGLY

'es'
LANG_TO =

FIXME UGLY

'ru'

Constants inherited from Bowler

Bowler::SEPARATOR

Instance Attribute Summary collapse

Attributes inherited from Bowler

#in, #out

Instance Method Summary collapse

Methods inherited from Bowler

#add_entity, #block, const_missing, #custom, #execute, #grip, #method_missing, #remove_entity, #respond_to?, #split

Methods included from TypoLogging

#logger, logger

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Qipowl::Bowlers::Bowler

Instance Attribute Details

#dictObject (readonly)

Returns the value of attribute dict.



29
30
31
# File 'lib/qipowl/bowlers/i_sp_ru.rb', line 29

def dict
  @dict
end

Instance Method Details

#special_handler(method, *args, &block) ⇒ Array (private)

Hence we cannot simply declare the DSL for it, we need to handle calls to all the methods, starting with those symbols.

Parameters:

  • method (Symbol)

    as specified by caller (method_missing.)

  • args (Array)

    as specified by caller (method_missing.)

  • block (Proc)

    as specified by caller (method_missing.)

Returns:

  • (Array)

    the array of words



91
92
93
# File 'lib/qipowl/bowlers/i_sp_ru.rb', line 91

def special_handler method, *args, &block
  

#∀_regular(*args) ⇒ Object

:regular default handler

Parameters:

  • args (Array)

    the words, gained since last call to Bowler#harvest



40
41
42
# File 'lib/qipowl/bowlers/i_sp_ru.rb', line 40

def 

#∀_word(method, *args, &block) ⇒ Object

Drum-roll!! The main handler for words



45
46
47
# File 'lib/qipowl/bowlers/i_sp_ru.rb', line 45

def