lib/nyaplot/base.rb in nyaplot-0.1.1 vs lib/nyaplot/base.rb in nyaplot-0.1.2

- old
+ new

@@ -39,10 +39,11 @@ def define_properties(*symbols) symbols.each do |symbol| define_method(symbol) {|val=nil| return @properties[symbol] if val.nil? @properties[symbol] = val + return self } end end # Define getter/setter for each property and group. @@ -59,9 +60,10 @@ define_properties(name) symbols.each do |symbol| define_method(symbol) {|val=nil| return @properties[name][symbol] if val.nil? @properties[name][symbol] = val + return self } end end end end