Module: SeleniumDsl::Engines
- Included in:
- SeleniumDsl
- Defined in:
- lib/selenium_dsl/engines.rb
Instance Method Summary collapse
Instance Method Details
#engines ⇒ Object
3 4 5 6 7 |
# File 'lib/selenium_dsl/engines.rb', line 3 def engines SeleniumDsl::Engines.private_instance_methods.collect do |x| "#{x[1,99]}" end end |
#in_engines?(cmd) ⇒ Boolean
9 10 11 |
# File 'lib/selenium_dsl/engines.rb', line 9 def in_engines?(cmd) engines.index(cmd) ? cmd : nil end |
#parse_eng(line) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/selenium_dsl/engines.rb', line 13 def parse_eng(line) arr = match_line(@r_eng,line.strip,'eng') cmd,prm = arr if (exc = in_engines?(cmd[0])) puts "#{@path}>eng: #{arr.inspect}" if opt_v send("_#{exc}",prm) if !@mock true else false end end |