Class: RbRules::Rule

Inherits:
Struct
  • Object
show all
Defined in:
lib/rbrules.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#blockObject

Returns the value of attribute block

Returns:

  • the current value of block



36
37
38
# File 'lib/rbrules.rb', line 36

def block
  @block
end

#nameObject

Returns the value of attribute name

Returns:

  • the current value of name



36
37
38
# File 'lib/rbrules.rb', line 36

def name
  @name
end

Instance Method Details

#call(*args) ⇒ Object



38
# File 'lib/rbrules.rb', line 38

def call(*args); block.call(*args) end