Class: Cel::Condition
- Inherits:
-
Object
- Object
- Cel::Condition
- Defined in:
- lib/cel/ast/elements.rb
Instance Attribute Summary collapse
-
#else ⇒ Object
readonly
Returns the value of attribute else.
-
#if ⇒ Object
readonly
Returns the value of attribute if.
-
#then ⇒ Object
readonly
Returns the value of attribute then.
Instance Method Summary collapse
-
#initialize(if_, then_, else_) ⇒ Condition
constructor
A new instance of Condition.
Constructor Details
#initialize(if_, then_, else_) ⇒ Condition
Returns a new instance of Condition.
316 317 318 319 320 |
# File 'lib/cel/ast/elements.rb', line 316 def initialize(if_, then_, else_) @if = if_ @then = then_ @else = else_ end |
Instance Attribute Details
#else ⇒ Object (readonly)
Returns the value of attribute else.
314 315 316 |
# File 'lib/cel/ast/elements.rb', line 314 def else @else end |
#if ⇒ Object (readonly)
Returns the value of attribute if.
314 315 316 |
# File 'lib/cel/ast/elements.rb', line 314 def if @if end |
#then ⇒ Object (readonly)
Returns the value of attribute then.
314 315 316 |
# File 'lib/cel/ast/elements.rb', line 314 def then @then end |