From a3a55aec0857ac12f227a097ca3a0ed6a48a9891 Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Tue, 26 Aug 2014 11:50:43 +0300 Subject: [PATCH] add volotiles in their classes --- lib/register/assembler.rb | 1 + lib/sof/volotile.rb | 3 +++ 2 files changed, 4 insertions(+) diff --git a/lib/register/assembler.rb b/lib/register/assembler.rb index c91acaae..7737584b 100644 --- a/lib/register/assembler.rb +++ b/lib/register/assembler.rb @@ -62,4 +62,5 @@ module Register def link_Symbol sym , at end end + Sof::Volotile.add(Register::Assembler , [:objects]) end diff --git a/lib/sof/volotile.rb b/lib/sof/volotile.rb index e57935f5..cf18a8f1 100644 --- a/lib/sof/volotile.rb +++ b/lib/sof/volotile.rb @@ -7,5 +7,8 @@ module Sof def self.attributes clazz @@mapping[clazz] || [] end + def self.add clazz , attributes + @@mapping[clazz] = attributes + end end end