Class: Kameleon::DSL::Verify::Condition

Inherits:
Object
  • Object
show all
Defined in:
lib/kameleon/dsl/verify/presence.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(method, *params, &block) ⇒ Condition

Returns a new instance of Condition.



69
70
71
72
73
# File 'lib/kameleon/dsl/verify/presence.rb', line 69

def initialize(method, *params, &block)
  @method = method
  @params = params
  @block = block
end

Instance Attribute Details

#blockObject

Returns the value of attribute block.



67
68
69
# File 'lib/kameleon/dsl/verify/presence.rb', line 67

def block
  @block
end

#methodObject

Returns the value of attribute method.



67
68
69
# File 'lib/kameleon/dsl/verify/presence.rb', line 67

def method
  @method
end

#paramsObject

Returns the value of attribute params.



67
68
69
# File 'lib/kameleon/dsl/verify/presence.rb', line 67

def params
  @params
end