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
2 3 4 |
# File 'lib/himari/rule.rb', line 2 def block @block end |
#name ⇒ Object
Returns the value of attribute name
2 3 4 |
# File 'lib/himari/rule.rb', line 2 def name @name end |
Instance Method Details
#call(context, decision) ⇒ Object
3 4 5 |
# File 'lib/himari/rule.rb', line 3 def call(context, decision) block.call(context, decision) end |