lib/csl/locale.rb in csl-1.1.0 vs lib/csl/locale.rb in csl-1.2.0
- old
+ new
@@ -128,9 +128,13 @@
end
yield self if block_given?
end
+ def initialize_copy(other)
+ @parent, @ancestors, @descendants, @siblings, @root, @depth = nil
+ initialize(other.attributes.to_hash.merge(:lang => other.to_s))
+ end
def added_to(node)
raise ValidationError, "not allowed to add locale to #{node.nodename}" unless
node.nodename == 'style'
end