Class: Mohair::Column
- Inherits:
-
Object
- Object
- Mohair::Column
- Defined in:
- lib/mohair/sql/tree.rb
Instance Method Summary collapse
-
#initialize(item) ⇒ Column
constructor
A new instance of Column.
- #is_agg? ⇒ Boolean
- #to_map_js ⇒ Object
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
31 32 33 |
# File 'lib/mohair/sql/tree.rb', line 31 def is_agg? false end |
#to_map_js ⇒ Object
27 28 29 |
# File 'lib/mohair/sql/tree.rb', line 27 def to_map_js "ret.#{@name} = obj.#{@name};" end |