Class: PineappleTranslator

Inherits:
Object
  • Object
show all
Includes:
Actions
Defined in:
lib/pineapple/translator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_sObject

Returns the value of attribute next_s.



8
9
10
# File 'lib/pineapple/translator.rb', line 8

def next_s
  @next_s
end

#scriptObject

Returns the value of attribute script.



8
9
10
# File 'lib/pineapple/translator.rb', line 8

def script
  @script
end

Instance Method Details

#translateObject



17
18
19
# File 'lib/pineapple/translator.rb', line 17

def translate
  instance_eval @step_body
end