Module: Rulezilla
- Extended by:
- Rulezilla
- Included in:
- Rulezilla
- Defined in:
- lib/rulezilla.rb,
lib/rulezilla/dsl.rb,
lib/rulezilla/node.rb,
lib/rulezilla/tree.rb,
lib/rulezilla/version.rb,
lib/rulezilla/rule_builder.rb,
lib/rulezilla/basic_support.rb,
lib/rulezilla/rule_builder/gherkin_to_result_rule.rb,
lib/rulezilla/rule_builder/gherkin_to_condition_rule.rb
Defined Under Namespace
Modules: BasicSupport, DSL Classes: Node, RuleBuilder, Tree
Constant Summary collapse
- VERSION =
'0.1.5'
Instance Attribute Summary collapse
-
#gherkin_rules_path ⇒ Object
Returns the value of attribute gherkin_rules_path.
Instance Method Summary collapse
Instance Attribute Details
#gherkin_rules_path ⇒ Object
Returns the value of attribute gherkin_rules_path.
10 11 12 |
# File 'lib/rulezilla.rb', line 10 def gherkin_rules_path @gherkin_rules_path end |
Instance Method Details
#const_missing(name) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/rulezilla.rb', line 12 def const_missing(name) raise 'Missing Gherkin Rule Path' if gherkin_rules_path.nil? matching_file = Dir.glob(File.join(gherkin_rules_path, '**', '*')).detect do |file| File.basename(file, ".*") == underscore(name.to_s) end if matching_file.nil? super else Rulezilla::RuleBuilder.from_file(name, matching_file).build end end |