Class: Spektr::Processors::ClassProcessor
- Includes:
- AST::Processor::Mixin
- Defined in:
- lib/spektr/processors/class_processor.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
Attributes inherited from Base
#name, #name_parts, #parent_modules, #parent_name, #parent_name_with_modules, #parent_parts
Instance Method Summary collapse
Methods inherited from Base
#extract_name_part, #extract_parent_parts, #handler_missing, #initialize, #on_const, #on_module, #part_matches_self?, #part_with_module
Constructor Details
This class inherits a constructor from Spektr::Processors::Base
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
6 7 8 |
# File 'lib/spektr/processors/class_processor.rb', line 6 def data @data end |
Instance Method Details
#on_begin(node) ⇒ Object
8 9 |
# File 'lib/spektr/processors/class_processor.rb', line 8 def on_begin(node) end |
#on_class(node) ⇒ Object
19 20 21 |
# File 'lib/spektr/processors/class_processor.rb', line 19 def on_class(node) puts "on class2: #{node.inspect}" end |
#on_def(node) ⇒ Object
11 12 13 |
# File 'lib/spektr/processors/class_processor.rb', line 11 def on_def(node) puts "on def: #{node.inspect}" end |
#on_require(node) ⇒ Object
15 16 17 |
# File 'lib/spektr/processors/class_processor.rb', line 15 def on_require(node) puts "on require: #{node.inspect}" end |