lib/loquor/resource.rb in loquor-1.0.0 vs lib/loquor/resource.rb in loquor-1.1.0
- old
+ new
@@ -9,9 +9,14 @@
@data[name]
rescue
raise NameError.new("undefined local variable or method '#{name}' for #{self.class.name}")
end
+ def respond_to?(name)
+ return true if super
+ @data.respond_to?(name)
+ end
+
def self.path=(path)
@path = path
end
def self.path