Class: PigLatin::Input
- Inherits:
-
Object
- Object
- PigLatin::Input
- Defined in:
- lib/piggy_latin.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ Input
constructor
A new instance of Input.
- #translate(input) ⇒ Object
Constructor Details
#initialize(options) ⇒ Input
Returns a new instance of Input.
62 63 64 |
# File 'lib/piggy_latin.rb', line 62 def initialize @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 |