lib/loquor/resource.rb in loquor-0.5.4 vs lib/loquor/resource.rb in loquor-0.6.0

- old
+ new

@@ -1,13 +1,15 @@ module Loquor class Resource def initialize(data) - @data = ObjectHash.new(data) + @data = ObjectHash.new(data, strict: true) end def method_missing(name, *args) @data[name] + rescue + raise NameError.new("undefined local variable or method '#{name}' for #{self.class.name}") end def self.path=(path) @path = path end