lib/inch/utils/read_write_methods.rb in inch-0.5.0.rc5 vs lib/inch/utils/read_write_methods.rb in inch-0.5.0.rc6

- old
+ new

@@ -19,18 +19,18 @@ module ReadWriteMethods # Implements a read method that acts as writer if called with a value # # @return [void] def rw_method(name) - class_eval """ + class_eval ''" def #{name}(value = nil) if value.nil? @#{name} else @#{name} = value end end - """ + "'' end # Implements multiple read(write) methods with the given +names+ # # @param names [Array<String,Symbol>]