Class: Himari::Rule
- Inherits:
-
Struct
- Object
- Struct
- Himari::Rule
- Defined in:
- lib/himari/rule.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
Returns the value of attribute block.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#block ⇒ Object
Returns the value of attribute block
4 5 6 |
# File 'lib/himari/rule.rb', line 4 def block @block end |
#name ⇒ Object
Returns the value of attribute name
4 5 6 |
# File 'lib/himari/rule.rb', line 4 def name @name end |
Instance Method Details
#call(context, decision) ⇒ Object
5 6 7 |
# File 'lib/himari/rule.rb', line 5 def call(context, decision) block.call(context, decision) end |