Class: Jazzy::SourceModule
- Inherits:
-
Object
- Object
- Jazzy::SourceModule
- Defined in:
- lib/jazzy/source_module.rb
Instance Attribute Summary collapse
-
#author_name ⇒ Object
Returns the value of attribute author_name.
-
#author_url ⇒ Object
Returns the value of attribute author_url.
-
#dash_url ⇒ Object
Returns the value of attribute dash_url.
-
#doc_coverage ⇒ Object
Returns the value of attribute doc_coverage.
-
#doc_structure ⇒ Object
Returns the value of attribute doc_structure.
-
#docs ⇒ Object
Returns the value of attribute docs.
-
#github_file_prefix ⇒ Object
Returns the value of attribute github_file_prefix.
-
#github_url ⇒ Object
Returns the value of attribute github_url.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #all_declarations ⇒ Object
-
#initialize(options, docs, doc_structure, doc_coverage) ⇒ SourceModule
constructor
A new instance of SourceModule.
Constructor Details
#initialize(options, docs, doc_structure, doc_coverage) ⇒ SourceModule
Returns a new instance of SourceModule.
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/jazzy/source_module.rb', line 16 def initialize(, docs, doc_structure, doc_coverage) self.docs = docs self.doc_structure = doc_structure self.doc_coverage = doc_coverage self.name = .module_name self. = . self.github_url = .github_url self.github_file_prefix = .github_file_prefix self. = . self.dash_url = .dash_url end |
Instance Attribute Details
#author_name ⇒ Object
Returns the value of attribute author_name.
10 11 12 |
# File 'lib/jazzy/source_module.rb', line 10 def end |
#author_url ⇒ Object
Returns the value of attribute author_url.
13 14 15 |
# File 'lib/jazzy/source_module.rb', line 13 def end |
#dash_url ⇒ Object
Returns the value of attribute dash_url.
14 15 16 |
# File 'lib/jazzy/source_module.rb', line 14 def dash_url @dash_url end |
#doc_coverage ⇒ Object
Returns the value of attribute doc_coverage.
8 9 10 |
# File 'lib/jazzy/source_module.rb', line 8 def doc_coverage @doc_coverage end |
#doc_structure ⇒ Object
Returns the value of attribute doc_structure.
9 10 11 |
# File 'lib/jazzy/source_module.rb', line 9 def doc_structure @doc_structure end |
#docs ⇒ Object
Returns the value of attribute docs.
7 8 9 |
# File 'lib/jazzy/source_module.rb', line 7 def docs @docs end |
#github_file_prefix ⇒ Object
Returns the value of attribute github_file_prefix.
12 13 14 |
# File 'lib/jazzy/source_module.rb', line 12 def github_file_prefix @github_file_prefix end |
#github_url ⇒ Object
Returns the value of attribute github_url.
11 12 13 |
# File 'lib/jazzy/source_module.rb', line 11 def github_url @github_url end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/jazzy/source_module.rb', line 6 def name @name end |
Instance Method Details
#all_declarations ⇒ Object
28 29 30 31 32 33 34 35 36 |
# File 'lib/jazzy/source_module.rb', line 28 def all_declarations all_declarations = [] visitor = lambda do |d| all_declarations.unshift(*d) d.map(&:children).each { |c| visitor[c] } end visitor[docs] all_declarations end |