2014-08-14 18:49:20 +02:00
|
|
|
require_relative "util"
|
2014-08-13 19:05:00 +02:00
|
|
|
require_relative "members"
|
2014-08-14 19:04:15 +02:00
|
|
|
require_relative "volotile"
|
2014-08-14 18:24:18 +02:00
|
|
|
require_relative "writer"
|
2014-08-13 19:05:00 +02:00
|
|
|
require_relative "array"
|
2014-08-15 16:14:49 +02:00
|
|
|
require_relative "hash"
|
2014-08-13 19:05:00 +02:00
|
|
|
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
|
|
|
|
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)
|
2014-08-14 18:49:20 +02:00
|
|
|
io.write "'"
|
2014-08-14 16:40:56 +02:00
|
|
|
io.write self
|
2014-08-14 18:49:20 +02:00
|
|
|
io.write "'"
|
2014-08-14 16:40:56 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
Fixnum.class_eval do
|
|
|
|
def to_sof(io , members)
|
|
|
|
io.write to_s
|
|
|
|
end
|
|
|
|
end
|