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:

  • (Object)

    the current value of block



47
48
49
# File 'lib/rbrules.rb', line 47

def block
  @block
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of 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