Class: Mohair::Column

Inherits:
Object
  • Object
show all
Defined in:
lib/mohair/sql/tree.rb

Instance Method Summary collapse

Constructor Details

#initialize(item) ⇒ Column

Returns a new instance of Column.



23
24
25
# File 'lib/mohair/sql/tree.rb', line 23

def initialize item
  @name = item.to_s
end

Instance Method Details

#is_agg?Boolean

Returns:

  • (Boolean)


31
32
33
# File 'lib/mohair/sql/tree.rb', line 31

def is_agg?
  false
end

#to_map_jsObject



27
28
29
# File 'lib/mohair/sql/tree.rb', line 27

def to_map_js
  "ret.#{@name} = obj.#{@name};"
end