Class: Cel::Group
- Inherits:
-
Object
- Object
- Cel::Group
- Defined in:
- lib/cel/ast/elements.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(value) ⇒ Group
constructor
A new instance of Group.
Constructor Details
#initialize(value) ⇒ Group
Returns a new instance of Group.
531 532 533 |
# File 'lib/cel/ast/elements.rb', line 531 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
529 530 531 |
# File 'lib/cel/ast/elements.rb', line 529 def value @value end |
Instance Method Details
#==(other) ⇒ Object
535 536 537 |
# File 'lib/cel/ast/elements.rb', line 535 def ==(other) other.is_a?(Group) && @value == other.value end |