rubyx/lib/sof/all.rb

35 lines
513 B
Ruby
Raw Normal View History

require_relative "util"
require_relative "members"
require_relative "volotile"
require_relative "writer"
require_relative "array"
2014-08-15 16:14:49 +02:00
require_relative "hash"
require_relative "occurence"
require_relative "node"
Symbol.class_eval do
def to_sof()
":#{to_s}"
end
end
TrueClass.class_eval do
def to_sof()
"true"
end
end
FalseClass.class_eval do
def to_sof()
"false"
end
end
String.class_eval do
def to_sof()
"'" + self + "'"
end
end
Fixnum.class_eval do
def to_sof()
to_s
end
end