lib/finix/resources/resource.rb in finix-0.5 vs lib/finix/resources/resource.rb in finix-0.6
- old
+ new
@@ -92,9 +92,13 @@
other.instance_variables.each do |ivar|
instance_variable_set ivar, other.instance_variable_get(ivar)
end
end
+ def to_s
+ "#{self.class.name.split('::').last || ''} #{@attributes}"
+ end
+
def self.included(base)
base.extend ClassMethods
end
module ClassMethods