lib/gamefic/element.rb in gamefic-2.0.2 vs lib/gamefic/element.rb in gamefic-2.0.3
- old
+ new
@@ -10,15 +10,15 @@
# include Gamefic::Index
include Gamefic::Serialize
# @todo It would be nice if this initialization wasn't necessary.
def initialize(args = {})
- # super self.class.default_attributes.merge(args)
- self.class.default_attributes.merge(args).each_pair do |k, v|
- public_send "#{k}=", v
- end
- post_initialize
- yield self if block_given?
+ # super self.class.default_attributes.merge(args)
+ self.class.default_attributes.merge(args).each_pair do |k, v|
+ public_send "#{k}=", v
+ end
+ post_initialize
+ yield self if block_given?
end
def post_initialize
# raise NotImplementedError, "#{self.class} must implement post_initialize"
end