This commit is contained in:
Torsten Ruger
2014-05-05 15:59:29 +03:00
parent de66238a9e
commit 69b04d930f
6 changed files with 34 additions and 12 deletions

View File

@ -11,12 +11,14 @@ module Support
name = name.to_s
if args.length == 1 #must be assignemnt for ir attr= val
if name.include? "="
return @attributes[name.chop] = args[0]
#puts "setting :#{name.chop}:#{args[0]}"
return @attributes[name.chop.to_sym] = args[0]
else
super
end
else
return @attributes[name]
#puts "getting :#{name}:#{@attributes[name.to_sym]}"
return @attributes[name.to_sym]
end
end
end