# encoding: utf-8 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