Class: Seaquel::AST::Alias

Inherits:
Object
  • Object
show all
Defined in:
lib/seaquel/ast/alias.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, expression) ⇒ Alias



6
7
8
9
# File 'lib/seaquel/ast/alias.rb', line 6

def initialize name, expression
  @name = name
  @expression = expression
end

Instance Attribute Details

#expressionObject (readonly)

Returns the value of attribute expression.



4
5
6
# File 'lib/seaquel/ast/alias.rb', line 4

def expression
  @expression
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/seaquel/ast/alias.rb', line 4

def name
  @name
end

Instance Method Details

#visit(visitor) ⇒ Object



11
12
13
# File 'lib/seaquel/ast/alias.rb', line 11

def visit visitor
  visitor.visit_alias(name, expression)
end