lib/zertico/accessor.rb in zertico-0.6.1 vs lib/zertico/accessor.rb in zertico-1.0.0

- old
+ new

@@ -11,17 +11,17 @@ def interface instance_variable_get("@#{interface_name}") end def method_missing(method_name, *args) - if instance_variable_get("@#{interface_name}").respond_to?(method_name) - return instance_variable_get("@#{interface_name}").send(method_name, *args) + if interface.respond_to?(method_name) + return interface.send(method_name, *args) end super end def respond_to_missing?(method_name, include_private = false) - return true if interface_class.respond_to?(method_name) + return true if interface.respond_to?(method_name) super end protected \ No newline at end of file