Class: Kameleon::DSL::Verify::Presence
- Inherits:
-
Object
- Object
- Kameleon::DSL::Verify::Presence
- Defined in:
- lib/kameleon/dsl/verify/presence.rb
Instance Attribute Summary collapse
-
#conditions ⇒ Object
Returns the value of attribute conditions.
-
#params ⇒ Object
Returns the value of attribute params.
Instance Method Summary collapse
-
#initialize(*params) ⇒ Presence
constructor
A new instance of Presence.
Constructor Details
#initialize(*params) ⇒ Presence
Returns a new instance of Presence.
8 9 10 11 12 13 |
# File 'lib/kameleon/dsl/verify/presence.rb', line 8 def initialize(*params) @params = params @conditions = [] parse_conditions end |
Instance Attribute Details
#conditions ⇒ Object
Returns the value of attribute conditions.
6 7 8 |
# File 'lib/kameleon/dsl/verify/presence.rb', line 6 def conditions @conditions end |
#params ⇒ Object
Returns the value of attribute params.
6 7 8 |
# File 'lib/kameleon/dsl/verify/presence.rb', line 6 def params @params end |