Class: Noiseless::AST::Bulk

Inherits:
Node
  • Object
show all
Defined in:
lib/noiseless/ast/bulk.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#to_h

Constructor Details

#initialize(operations) ⇒ Bulk

Returns a new instance of Bulk.



8
9
10
11
# File 'lib/noiseless/ast/bulk.rb', line 8

def initialize(operations)
  super()
  @operations = operations
end

Instance Attribute Details

#operationsObject (readonly)

Returns the value of attribute operations.



6
7
8
# File 'lib/noiseless/ast/bulk.rb', line 6

def operations
  @operations
end

Instance Method Details

#==(other) ⇒ Object



13
14
15
# File 'lib/noiseless/ast/bulk.rb', line 13

def ==(other)
  other.is_a?(self.class) && operations == other.operations
end