Class: Brule::Rule
- Inherits:
-
Struct
- Object
- Struct
- Brule::Rule
- Extended by:
- RuleHelpers
- Defined in:
- lib/brule.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
-
#context ⇒ Object
Returns the value of attribute context.
Instance Method Summary collapse
Methods included from RuleHelpers
config_reader, context_accessor, context_reader, context_writer
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config
31 32 33 |
# File 'lib/brule.rb', line 31 def config @config end |
#context ⇒ Object
Returns the value of attribute context.
34 35 36 |
# File 'lib/brule.rb', line 34 def context @context end |
Instance Method Details
#apply ⇒ Object
40 41 42 |
# File 'lib/brule.rb', line 40 def apply raise NotImplementedError end |
#trigger? ⇒ Boolean
36 37 38 |
# File 'lib/brule.rb', line 36 def trigger? true end |