Parent

Class/Module Index [+]

Quicksearch

Cucumber::PySupport::PyLanguage

Public Class Methods

new(step_mother) click to toggle source
# File lib/cucumber/py_support/py_language.rb, line 8
def initialize(step_mother)
  @step_def_files = []
  #
  # @python_path = ENV['PYTHONPATH'] ? ENV['PYTHONPATH'].split(':') : []
  # add_to_python_path(File.dirname(__FILE__))
  #
  # RubyPython.start
  # at_exit{RubyPython.stop}
  #
  # import(File.dirname(__FILE__) + '/py_language.py')
end

Public Instance Methods

alias_adverbs(adverbs) click to toggle source
# File lib/cucumber/py_support/py_language.rb, line 24
def alias_adverbs(adverbs)
end
begin_scenario(scenario) click to toggle source
# File lib/cucumber/py_support/py_language.rb, line 35
def begin_scenario(scenario)
  @python_path = []
  add_to_python_path(File.dirname(__FILE__))
  @step_def_files.each{|f| add_to_python_path(File.dirname(f))}

  RubyPython.start

  @delegate = import(File.dirname(__FILE__) + '/py_language.py')
  @step_def_files.each{|f| import(f)}
end
end_scenario() click to toggle source
# File lib/cucumber/py_support/py_language.rb, line 46
def end_scenario
end
load_code_file(py_file) click to toggle source
# File lib/cucumber/py_support/py_language.rb, line 20
def load_code_file(py_file)
  @step_def_files << py_file
end
snippet_text(step_keyword, step_name, multiline_arg_class) click to toggle source
# File lib/cucumber/py_support/py_language.rb, line 31
def snippet_text(step_keyword, step_name, multiline_arg_class)
  "python snippet: #{step_keyword}, #{step_name}"
end
step_definitions_for(py_file) click to toggle source
# File lib/cucumber/py_support/py_language.rb, line 27
def step_definitions_for(py_file)
  mod = import(py_file)
end
step_matches(step_name, name_to_report) click to toggle source
# File lib/cucumber/py_support/py_language.rb, line 49
def step_matches(step_name, name_to_report)
  @delegate.step_matches(step_name, name_to_report)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.