lib/clowne/declarations/trait.rb in clowne-0.1.0.pre1 vs lib/clowne/declarations/trait.rb in clowne-0.1.0

- old
+ new

@@ -14,9 +14,11 @@ def compiled return @compiled if instance_variable_defined?(:@compiled) @compiled = compile end + alias declarations compiled + def dup self.class.new.tap do |duped| blocks.each { |b| duped.extend_with(b) } end end