Class: Cucumber::Tcl::Framework
- Inherits:
-
Object
- Object
- Cucumber::Tcl::Framework
- Defined in:
- lib/cucumber/tcl/framework.rb
Constant Summary collapse
- TCL_FRAMEWORK_PATH =
File.dirname(__FILE__) + '/framework.tcl'
Instance Method Summary collapse
- #execute_step_definition(*args) ⇒ Object
-
#initialize(path = TCL_FRAMEWORK_PATH) ⇒ Framework
constructor
A new instance of Framework.
- #step_definition_exists?(step_name) ⇒ Boolean
Constructor Details
#initialize(path = TCL_FRAMEWORK_PATH) ⇒ Framework
Returns a new instance of Framework.
6 7 8 |
# File 'lib/cucumber/tcl/framework.rb', line 6 def initialize(path = TCL_FRAMEWORK_PATH) @tcl = ::Tcl::Interp.load_from_file(path) end |
Instance Method Details
#execute_step_definition(*args) ⇒ Object
14 15 16 |
# File 'lib/cucumber/tcl/framework.rb', line 14 def execute_step_definition(*args) @tcl.proc('execute_step_definition').call(*args) end |
#step_definition_exists?(step_name) ⇒ Boolean
10 11 12 |
# File 'lib/cucumber/tcl/framework.rb', line 10 def step_definition_exists?(step_name) @tcl.proc('step_definition_exists').call(step_name) == "1" end |