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.



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

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

Instance Attribute Details

#blockObject

Returns the value of attribute block.



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

def block
  @block
end

#methodObject

Returns the value of attribute method.



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

def method
  @method
end

#paramsObject

Returns the value of attribute params.



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

def params
  @params
end