Sha256: 54bee692dc5f5343efee5689357609d36369f1f089dee777b06e380276f8f051
Contents?: true
Size: 337 Bytes
Versions: 4
Compression:
Stored size: 337 Bytes
Contents
module Piglet module Field class Rename # :nodoc: attr_reader :name, :type def initialize(new_name, field_expression) @name, @field_expression, @type = new_name, field_expression, field_expression.type end def to_s "#{@field_expression} AS #{@name}" end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
piglet-0.2.4 | lib/piglet/field/rename.rb |
piglet-0.2.3 | lib/piglet/field/rename.rb |
piglet-0.2.2 | lib/piglet/field/rename.rb |
piglet-0.2.0 | lib/piglet/field/rename.rb |