Class: Kameleon::DSL::Verify::Condition
- Inherits:
-
Object
- Object
- Kameleon::DSL::Verify::Condition
- Defined in:
- lib/kameleon/dsl/verify/presence.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
Returns the value of attribute block.
-
#method ⇒ Object
Returns the value of attribute method.
-
#params ⇒ Object
Returns the value of attribute params.
Instance Method Summary collapse
-
#initialize(method, *params, &block) ⇒ Condition
constructor
A new instance of Condition.
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
#block ⇒ Object
Returns the value of attribute block.
68 69 70 |
# File 'lib/kameleon/dsl/verify/presence.rb', line 68 def block @block end |
#method ⇒ Object
Returns the value of attribute method.
68 69 70 |
# File 'lib/kameleon/dsl/verify/presence.rb', line 68 def method @method end |
#params ⇒ Object
Returns the value of attribute params.
68 69 70 |
# File 'lib/kameleon/dsl/verify/presence.rb', line 68 def params @params end |