Class: Kameleon::DSL::Verify::Element

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#conditionsObject (readonly)

Returns the value of attribute conditions.



132
133
134
# File 'lib/kameleon/dsl/verify/presence.rb', line 132

def conditions
  @conditions
end

#expressionObject (readonly)

Returns the value of attribute expression.



132
133
134
# File 'lib/kameleon/dsl/verify/presence.rb', line 132

def expression
  @expression
end