Sha256: c9a618d4422b960016bb6045b6fb643942b54970f5d38266b7e9ec49806c323a
Contents?: true
Size: 342 Bytes
Versions: 4
Compression:
Stored size: 342 Bytes
Contents
module Piglet module Schema class Bag def initialize(tuple) @tuple = tuple end def field_names @tuple.field_names end def field_type(name) @tuple.field_type(name) end def to_s @tuple.to_s.sub(/^\((.*)\)$/, '{\1}') end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
piglet-0.2.4 | lib/piglet/schema/bag.rb |
piglet-0.2.3 | lib/piglet/schema/bag.rb |
piglet-0.2.2 | lib/piglet/schema/bag.rb |
piglet-0.2.0 | lib/piglet/schema/bag.rb |