Class: Kameleon::DSL::Verify::Element
- Inherits:
-
Object
- Object
- Kameleon::DSL::Verify::Element
- Defined in:
- lib/kameleon/dsl/verify/presence.rb
Instance Attribute Summary collapse
-
#conditions ⇒ Object
readonly
Returns the value of attribute conditions.
-
#expression ⇒ Object
readonly
Returns the value of attribute expression.
Instance Method Summary collapse
-
#initialize(expression) ⇒ Element
constructor
A new instance of Element.
Constructor Details
#initialize(expression) ⇒ Element
Returns a new instance of Element.
134 135 136 137 |
# File 'lib/kameleon/dsl/verify/presence.rb', line 134 def initialize(expression) @expression = expression @conditions = [condition] end |
Instance Attribute Details
#conditions ⇒ Object (readonly)
Returns the value of attribute conditions.
132 133 134 |
# File 'lib/kameleon/dsl/verify/presence.rb', line 132 def conditions @conditions end |
#expression ⇒ Object (readonly)
Returns the value of attribute expression.
132 133 134 |
# File 'lib/kameleon/dsl/verify/presence.rb', line 132 def expression @expression end |