lib/sanultari/config/store.rb in sanultari-config-0.1.0 vs lib/sanultari/config/store.rb in sanultari-config-0.2.0.rc.1

- old
+ new

@@ -38,11 +38,11 @@ name = method_name.to_s name.chomp!('=') self.class.instance_eval do define_method(name.to_sym) do |&blk| - blk.call self[name] if blk != nil - self[name] + blk.call self[name] if blk != nil + self[name] end if not public_methods.include? name.to_sym define_method("#{name}=".to_sym) do |value| self[name] = value end