Class: Elsmore::Rewriter
- Inherits:
-
Object
- Object
- Elsmore::Rewriter
- Defined in:
- lib/elsmore/rewriter.rb
Instance Attribute Summary collapse
-
#emitter ⇒ Object
Returns the value of attribute emitter.
-
#resource ⇒ Object
Returns the value of attribute resource.
Instance Method Summary collapse
-
#initialize(resource) ⇒ Rewriter
constructor
A new instance of Rewriter.
- #rewrite ⇒ Object
Constructor Details
#initialize(resource) ⇒ Rewriter
Returns a new instance of Rewriter.
5 6 7 |
# File 'lib/elsmore/rewriter.rb', line 5 def initialize resource self.resource = resource end |
Instance Attribute Details
#emitter ⇒ Object
Returns the value of attribute emitter.
3 4 5 |
# File 'lib/elsmore/rewriter.rb', line 3 def emitter @emitter end |
#resource ⇒ Object
Returns the value of attribute resource.
3 4 5 |
# File 'lib/elsmore/rewriter.rb', line 3 def resource @resource end |
Instance Method Details
#rewrite ⇒ Object
9 10 11 12 |
# File 'lib/elsmore/rewriter.rb', line 9 def rewrite rewrite_linked_resources rewrite_links end |