Class: Cel::Group

Inherits:
Object
  • Object
show all
Defined in:
lib/cel/ast/elements.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ Group

Returns a new instance of Group.



511
512
513
# File 'lib/cel/ast/elements.rb', line 511

def initialize(value)
  @value = value
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



509
510
511
# File 'lib/cel/ast/elements.rb', line 509

def value
  @value
end

Instance Method Details

#==(other) ⇒ Object



515
516
517
# File 'lib/cel/ast/elements.rb', line 515

def ==(other)
  other.is_a?(Group) && @value == other.value
end