2014-08-13 19:05:00 +02:00
|
|
|
require_relative "members"
|
2014-08-14 18:24:18 +02:00
|
|
|
require_relative "writer"
|
2014-08-13 19:05:00 +02:00
|
|
|
require_relative "array"
|
|
|
|
require_relative "occurence"
|
2014-08-14 16:40:56 +02:00
|
|
|
|
|
|
|
Symbol.class_eval do
|
|
|
|
def to_sof(io, members)
|
|
|
|
io.write ":#{to_s}"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
NilClass.class_eval do
|
|
|
|
def to_sof(io,members)
|
|
|
|
io.write "nil"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
TrueClass.class_eval do
|
|
|
|
def to_sof(io , members)
|
|
|
|
io.write "true"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
FalseClass.class_eval do
|
|
|
|
def to_sof(io , members)
|
|
|
|
io.write "false"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
String.class_eval do
|
|
|
|
def to_sof(io, members)
|
|
|
|
io.write self
|
|
|
|
end
|
|
|
|
end
|
|
|
|
Fixnum.class_eval do
|
|
|
|
def to_sof(io , members)
|
|
|
|
io.write to_s
|
|
|
|
end
|
|
|
|
end
|