rubyx/lib/sof/volotile.rb

15 lines
290 B
Ruby
Raw Normal View History

module Sof
class Volotile
@@mapping = {
2014-08-19 21:54:28 +02:00
Virtual::Block => [:method],
Virtual::CompiledMethod => [:current]
}
def self.attributes clazz
@@mapping[clazz] || []
end
2014-08-26 10:50:43 +02:00
def self.add clazz , attributes
@@mapping[clazz] = attributes
end
end
end