Class: PageEz::Visitors::DepthVisitor
- Inherits:
-
Object
- Object
- PageEz::Visitors::DepthVisitor
- Defined in:
- lib/page_ez/visitors/depth_visitor.rb
Instance Attribute Summary collapse
-
#depth ⇒ Object
readonly
Returns the value of attribute depth.
Instance Method Summary collapse
- #begin_block_evaluation ⇒ Object
- #define_method(name) ⇒ Object
- #end_block_evaluation ⇒ Object
- #inherit_from(subclass) ⇒ Object
-
#initialize ⇒ DepthVisitor
constructor
A new instance of DepthVisitor.
- #process_macro ⇒ Object
- #reset ⇒ Object
- #track_method_added ⇒ Object
- #track_method_delegated ⇒ Object
- #track_method_renamed ⇒ Object
- #track_method_undefined ⇒ Object
Constructor Details
#initialize ⇒ DepthVisitor
Returns a new instance of DepthVisitor.
6 7 8 |
# File 'lib/page_ez/visitors/depth_visitor.rb', line 6 def initialize reset end |
Instance Attribute Details
#depth ⇒ Object (readonly)
Returns the value of attribute depth.
4 5 6 |
# File 'lib/page_ez/visitors/depth_visitor.rb', line 4 def depth @depth end |
Instance Method Details
#begin_block_evaluation ⇒ Object
10 11 12 |
# File 'lib/page_ez/visitors/depth_visitor.rb', line 10 def begin_block_evaluation @depth += 1 end |
#define_method(name) ⇒ Object
18 19 |
# File 'lib/page_ez/visitors/depth_visitor.rb', line 18 def define_method(name) end |
#end_block_evaluation ⇒ Object
14 15 16 |
# File 'lib/page_ez/visitors/depth_visitor.rb', line 14 def end_block_evaluation @depth -= 1 end |
#inherit_from(subclass) ⇒ Object
21 22 |
# File 'lib/page_ez/visitors/depth_visitor.rb', line 21 def inherit_from(subclass) end |
#process_macro ⇒ Object
36 37 |
# File 'lib/page_ez/visitors/depth_visitor.rb', line 36 def process_macro(*) end |
#reset ⇒ Object
39 40 41 |
# File 'lib/page_ez/visitors/depth_visitor.rb', line 39 def reset @depth = 0 end |
#track_method_added ⇒ Object
24 25 |
# File 'lib/page_ez/visitors/depth_visitor.rb', line 24 def track_method_added(*) end |
#track_method_delegated ⇒ Object
33 34 |
# File 'lib/page_ez/visitors/depth_visitor.rb', line 33 def track_method_delegated(*) end |
#track_method_renamed ⇒ Object
30 31 |
# File 'lib/page_ez/visitors/depth_visitor.rb', line 30 def track_method_renamed(*) end |
#track_method_undefined ⇒ Object
27 28 |
# File 'lib/page_ez/visitors/depth_visitor.rb', line 27 def track_method_undefined(*) end |