rename machine to c_machine

This commit is contained in:
Torsten Ruger
2014-05-13 17:06:42 +03:00
parent d7f31e7f39
commit b0302948dd
10 changed files with 21 additions and 20 deletions

View File

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