Class: Inch::Language::Nodejs::CodeObject::ModuleObject
- Inherits:
-
Base
- Object
- CodeObject::Proxy
- Base
- Inch::Language::Nodejs::CodeObject::ModuleObject
- Defined in:
- lib/inch/language/nodejs/code_object/module_object.rb
Overview
Proxy class for modules
Direct Known Subclasses
Constant Summary collapse
- MANY_CHILDREN_THRESHOLD =
20
Instance Attribute Summary
Attributes inherited from CodeObject::Proxy
Instance Method Summary collapse
Methods inherited from Base
#alias?, #aliased_object, #api_tag?, #children, #constant?, #core?, #depth, #docstring, #filename, #files, #fullname, #has_alias?, #has_children?, #has_code_example?, #has_doc?, #has_multiple_code_examples?, #has_unconsidered_tags?, #in_root?, #language, #method?, #name, #namespace?, #nodoc?, #original_docstring, #parent, #private?, #protected?, #public?, #source, #tagged_as_internal_api?, #tagged_as_private?, #type, #unconsidered_tag_count, #undocumented?, #visibility
Methods inherited from CodeObject::Proxy
#[], for, #initialize, #inspect, #language, #marshal_dump, #marshal_load
Constructor Details
This class inherits a constructor from Inch::CodeObject::Proxy
Instance Method Details
#has_many_children? ⇒ Boolean
8 9 10 |
# File 'lib/inch/language/nodejs/code_object/module_object.rb', line 8 def has_many_children? children.size > MANY_CHILDREN_THRESHOLD end |
#has_methods? ⇒ Boolean
12 13 14 |
# File 'lib/inch/language/nodejs/code_object/module_object.rb', line 12 def has_methods? children.any?(&:method?) end |
#pure_namespace? ⇒ Boolean
16 17 18 |
# File 'lib/inch/language/nodejs/code_object/module_object.rb', line 16 def pure_namespace? children.all?(&:namespace?) end |