Class: PigLatin::Input

Inherits:
Object
  • Object
show all
Defined in:
lib/piggy_latin.rb

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Input

Returns a new instance of Input.



62
63
64
# File 'lib/piggy_latin.rb', line 62

def initialize options
  @options = options
end

Instance Method Details

#translate(input) ⇒ Object



66
67
68
69
# File 'lib/piggy_latin.rb', line 66

def translate input
  pig_latin = Translator.new(@options)
  pig_latin.translate(input)
end