diff --git a/lib/biju/to_hayes.rb b/lib/biju/to_hayes.rb new file mode 100644 index 0000000..28bc8aa --- /dev/null +++ b/lib/biju/to_hayes.rb @@ -0,0 +1,19 @@ +class Object + def to_hayes; "\"#{self.to_s}\""; end +end + +class Fixnum + def to_hayes; self.to_s; end +end + +class TrueClass + def to_hayes; '1'; end +end + +class FalseClass + def to_hayes; '0'; end +end + +class Array + def to_hayes; self.map(&:to_hayes).join(','); end +end