lib/motion-kit-cocoa/constraints/constraint.rb in motion-kit-0.9.4 vs lib/motion-kit-cocoa/constraints/constraint.rb in motion-kit-0.9.6
- old
+ new
@@ -393,14 +393,14 @@
@attribute = [:width, :height]
@attribute2 = [:width, :height]
end
def attribute=(value)
- raise NoMethodError.new('attribute=')
+ raise NoMethodError.new("undefined method `#{:attribute=}' for #{self}:#{self.class}", :attribute=)
end
def attribute2=(value)
- raise NoMethodError.new('attribute2=')
+ raise NoMethodError.new("undefined method `#{:attribute2=}' for #{self}:#{self.class}", :attribute2=)
end
def constant=(constant)
if constant.is_a?(Array)
@constant = constant[0..1]