Sha256: d15f03501d8a4a34df7cb63b23903cfc0d3fc2d79081071d12db8320a2b547ec
Contents?: true
Size: 492 Bytes
Versions: 1
Compression:
Stored size: 492 Bytes
Contents
# encoding: utf-8 module Piglet module Field class Rename # :nodoc: attr_reader :name, :type, :predecessors def initialize(name, field_expression) @name, @field_expression, @type = name, field_expression, field_expression.type @predecessors = [field_expression] end def to_s(inner=false) expr = if inner then @field_expression.field_alias else @field_expression end "#{expr} AS #{@name}" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
piglet-0.3.0 | lib/piglet/field/rename.rb |