Class: Noiseless::AST::Sort
Instance Attribute Summary collapse
-
#direction ⇒ Object
readonly
Returns the value of attribute direction.
-
#field ⇒ Object
readonly
Returns the value of attribute field.
Instance Method Summary collapse
-
#initialize(field, direction) ⇒ Sort
constructor
A new instance of Sort.
Methods inherited from Node
Constructor Details
#initialize(field, direction) ⇒ Sort
Returns a new instance of Sort.
8 9 10 11 12 |
# File 'lib/noiseless/ast/sort.rb', line 8 def initialize(field, direction) super() @field = field @direction = direction end |
Instance Attribute Details
#direction ⇒ Object (readonly)
Returns the value of attribute direction.
6 7 8 |
# File 'lib/noiseless/ast/sort.rb', line 6 def direction @direction end |
#field ⇒ Object (readonly)
Returns the value of attribute field.
6 7 8 |
# File 'lib/noiseless/ast/sort.rb', line 6 def field @field end |