Class: Brule::Rule
- Inherits:
-
Struct
- Object
- Struct
- Brule::Rule
- Defined in:
- lib/brule/rule.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
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config
2 3 4 |
# File 'lib/brule/rule.rb', line 2 def config @config end |
#context ⇒ Object
Returns the value of attribute context.
3 4 5 |
# File 'lib/brule/rule.rb', line 3 def context @context end |
Instance Method Details
#apply ⇒ Object
9 10 11 |
# File 'lib/brule/rule.rb', line 9 def apply raise NotImplementedError end |
#trigger? ⇒ Boolean
5 6 7 |
# File 'lib/brule/rule.rb', line 5 def trigger? true end |