Class: Wood::TreeRewriter::Rewriter
- Inherits:
-
Object
- Object
- Wood::TreeRewriter::Rewriter
- Defined in:
- lib/wood/tree_rewriter.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Rewriter
constructor
A new instance of Rewriter.
Constructor Details
#initialize ⇒ Rewriter
Returns a new instance of Rewriter.
4 5 6 |
# File 'lib/wood/tree_rewriter.rb', line 4 def initialize self.class.patterns self end |
Class Method Details
.inherited(klass) ⇒ Object
8 9 10 11 |
# File 'lib/wood/tree_rewriter.rb', line 8 def self.inherited(klass) klass.include Wood::TreePattern::Matcher klass.include Wood::TreeRewriter end |