class Cucumber::Tcl::Framework

Constants

TCL_FRAMEWORK_PATH

Public Class Methods

new(cucumber_config = nil, path = TCL_FRAMEWORK_PATH) click to toggle source
# File lib/cucumber/tcl/framework.rb, line 6
def initialize(cucumber_config = nil, path = TCL_FRAMEWORK_PATH)
  @tcl = ::Tcl::Interp.load_from_file(path)

  all_files_to_load = cucumber_config.nil? ? [] : cucumber_config.all_files_to_load
  all_files_to_load.collect! {|f| f.gsub(/([\\\s{}])/, '\\\\\1')}
  @tcl.proc('source_files').call(all_files_to_load.join(' '))
end

Public Instance Methods

execute_step_definition(*args) click to toggle source
# File lib/cucumber/tcl/framework.rb, line 18
def execute_step_definition(*args)
  @tcl.proc('execute_step_definition').call(*args)
end
step_definition_exists?(step_name) click to toggle source
# File lib/cucumber/tcl/framework.rb, line 14
def step_definition_exists?(step_name)
  @tcl.proc('step_definition_exists').call(step_name) == "1"
end