Class: RubyLint::DefinitionBuilder::RubyClass
- Inherits:
-
RubyModule
- Object
- Base
- RubyModule
- RubyLint::DefinitionBuilder::RubyClass
- Defined in:
- lib/ruby-lint/definition_builder/ruby_class.rb
Overview
Definition builder used for building Ruby classes.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#after_initialize ⇒ Object
Called after creating a new instance of the class.
-
#build ⇒ Object
Builds the definition for a Ruby class.
Methods inherited from RubyModule
#module_name, #new_definition, #scope
Methods inherited from Base
Constructor Details
This class inherits a constructor from RubyLint::DefinitionBuilder::Base
Instance Method Details
#after_initialize ⇒ Object
Called after creating a new instance of the class.
10 11 12 |
# File 'lib/ruby-lint/definition_builder/ruby_class.rb', line 10 def after_initialize [:parent] ||= vm.global_constant('Object') end |
#build ⇒ Object
Builds the definition for a Ruby class.
19 20 21 |
# File 'lib/ruby-lint/definition_builder/ruby_class.rb', line 19 def build return new_definition([[:parent], vm.current_scope]) end |