Class: Noiseless::AST::Range

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#to_h

Constructor Details

#initialize(field, gte: nil, lte: nil, gt: nil, lt: nil) ⇒ Range

Returns a new instance of Range.



8
9
10
11
12
13
14
15
# File 'lib/noiseless/ast/range.rb', line 8

def initialize(field, gte: nil, lte: nil, gt: nil, lt: nil)
  super()
  @field = field
  @gte = gte
  @lte = lte
  @gt = gt
  @lt = lt
end

Instance Attribute Details

#fieldObject (readonly)

Returns the value of attribute field.



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

def field
  @field
end

#gtObject (readonly)

Returns the value of attribute gt.



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

def gt
  @gt
end

#gteObject (readonly)

Returns the value of attribute gte.



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

def gte
  @gte
end

#ltObject (readonly)

Returns the value of attribute lt.



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

def lt
  @lt
end

#lteObject (readonly)

Returns the value of attribute lte.



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

def lte
  @lte
end