Class: Cel::Group

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ Group



7
8
9
# File 'lib/cel/ast/elements/group.rb', line 7

def initialize(value)
  @value = value
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



5
6
7
# File 'lib/cel/ast/elements/group.rb', line 5

def value
  @value
end

Instance Method Details

#==(other) ⇒ Object



15
16
17
# File 'lib/cel/ast/elements/group.rb', line 15

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

#typeObject



11
12
13
# File 'lib/cel/ast/elements/group.rb', line 11

def type
  TYPES[:any]
end