Class: Seaquel::AST::Binding
- Inherits:
-
Expression
- Object
- Expression
- Seaquel::AST::Binding
- Defined in:
- lib/seaquel/ast/binding.rb
Instance Attribute Summary collapse
-
#pos ⇒ Object
readonly
Returns the value of attribute pos.
Instance Method Summary collapse
-
#initialize(pos) ⇒ Binding
constructor
A new instance of Binding.
- #inspect ⇒ Object
- #visit(visitor) ⇒ Object
Methods inherited from Expression
Constructor Details
#initialize(pos) ⇒ Binding
Returns a new instance of Binding.
8 9 10 |
# File 'lib/seaquel/ast/binding.rb', line 8 def initialize pos @pos = pos end |
Instance Attribute Details
#pos ⇒ Object (readonly)
Returns the value of attribute pos.
6 7 8 |
# File 'lib/seaquel/ast/binding.rb', line 6 def pos @pos end |
Instance Method Details
#inspect ⇒ Object
16 17 18 |
# File 'lib/seaquel/ast/binding.rb', line 16 def inspect "(bind #{pos})" end |
#visit(visitor) ⇒ Object
12 13 14 |
# File 'lib/seaquel/ast/binding.rb', line 12 def visit visitor visitor.visit_binding pos.to_s end |