Class: Noiseless::AST::Range
Instance Attribute Summary collapse
-
#field ⇒ Object
readonly
Returns the value of attribute field.
-
#gt ⇒ Object
readonly
Returns the value of attribute gt.
-
#gte ⇒ Object
readonly
Returns the value of attribute gte.
-
#lt ⇒ Object
readonly
Returns the value of attribute lt.
-
#lte ⇒ Object
readonly
Returns the value of attribute lte.
Instance Method Summary collapse
-
#initialize(field, gte: nil, lte: nil, gt: nil, lt: nil) ⇒ Range
constructor
A new instance of Range.
Methods inherited from Node
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
#field ⇒ Object (readonly)
Returns the value of attribute field.
6 7 8 |
# File 'lib/noiseless/ast/range.rb', line 6 def field @field end |
#gt ⇒ Object (readonly)
Returns the value of attribute gt.
6 7 8 |
# File 'lib/noiseless/ast/range.rb', line 6 def gt @gt end |
#gte ⇒ Object (readonly)
Returns the value of attribute gte.
6 7 8 |
# File 'lib/noiseless/ast/range.rb', line 6 def gte @gte end |
#lt ⇒ Object (readonly)
Returns the value of attribute lt.
6 7 8 |
# File 'lib/noiseless/ast/range.rb', line 6 def lt @lt end |
#lte ⇒ Object (readonly)
Returns the value of attribute lte.
6 7 8 |
# File 'lib/noiseless/ast/range.rb', line 6 def lte @lte end |