lib/new_class.rb in new_class-0.1.0 vs lib/new_class.rb in new_class-0.1.1
- old
+ new
@@ -37,10 +37,10 @@
end
end
module MethodMissing
def method_missing(method, *args)
- _variables.include?(key = method.to_sym) ? define_method(key){ _variables[key] }.call : super
+ _variables.include?(key = method.to_sym) ? _variables[key] : super
end
def respond_to?(symbol, include_private = false)
_variables.include?(symbol.to_sym) || super
end
end
\ No newline at end of file