Class: RbRules::Rule
- Inherits:
-
Struct
- Object
- Struct
- RbRules::Rule
- Defined in:
- lib/rbrules.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
47 48 49 |
# File 'lib/rbrules.rb', line 47 def block @block end |
#name ⇒ Object
Returns the value of attribute name
47 48 49 |
# File 'lib/rbrules.rb', line 47 def name @name end |
Instance Method Details
#call(*args) ⇒ Object
49 |
# File 'lib/rbrules.rb', line 49 def call(*args); block.call(*args) end |