Class: PineappleTranslator
- Inherits:
-
Object
- Object
- PineappleTranslator
- Includes:
- Actions
- Defined in:
- lib/pineapple/translator.rb
Instance Attribute Summary collapse
-
#next_s ⇒ Object
Returns the value of attribute next_s.
-
#script ⇒ Object
Returns the value of attribute script.
Instance Method Summary collapse
-
#initialize(step_body) ⇒ PineappleTranslator
constructor
A new instance of PineappleTranslator.
- #translate ⇒ Object
Methods included from Actions
#check, #choose, #click_button, #click_link, #click_on, #fill_in, #find_item, #jscript, #select, #uncheck, #visit
Constructor Details
#initialize(step_body) ⇒ PineappleTranslator
Returns a new instance of PineappleTranslator.
10 11 12 13 14 15 |
# File 'lib/pineapple/translator.rb', line 10 def initialize(step_body) @script= "" @step_body = step_body end |
Instance Attribute Details
#next_s ⇒ Object
Returns the value of attribute next_s.
8 9 10 |
# File 'lib/pineapple/translator.rb', line 8 def next_s @next_s end |
#script ⇒ Object
Returns the value of attribute script.
8 9 10 |
# File 'lib/pineapple/translator.rb', line 8 def script @script end |
Instance Method Details
#translate ⇒ Object
17 18 19 |
# File 'lib/pineapple/translator.rb', line 17 def translate instance_eval @step_body end |