Class: MarkdownRubyDocumentation::Generate::Page
- Inherits:
-
Object
- Object
- MarkdownRubyDocumentation::Generate::Page
- Defined in:
- lib/markdown_ruby_documentation/generate.rb
Instance Attribute Summary collapse
-
#erb_methods_class ⇒ Object
readonly
Returns the value of attribute erb_methods_class.
-
#load_path ⇒ Object
readonly
Returns the value of attribute load_path.
-
#output_object ⇒ Object
readonly
Returns the value of attribute output_object.
-
#subject ⇒ Object
readonly
Returns the value of attribute subject.
-
#subject_location ⇒ Object
readonly
Returns the value of attribute subject_location.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(subject_class:, subject_location:, methods: [], load_path:, output_object:, erb_methods_class:) ⇒ Page
constructor
A new instance of Page.
Constructor Details
#initialize(subject_class:, subject_location:, methods: [], load_path:, output_object:, erb_methods_class:) ⇒ Page
Returns a new instance of Page.
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/markdown_ruby_documentation/generate.rb', line 68 def initialize(subject_class:, subject_location:, methods: [], load_path:, output_object:, erb_methods_class:) initialize_methods(methods, subject_class, subject_location) @erb_methods_class = erb_methods_class @subject = subject_class @subject_location = subject_location methods = methods @methods = methods @load_path = load_path @output_object = output_object end |
Instance Attribute Details
#erb_methods_class ⇒ Object (readonly)
Returns the value of attribute erb_methods_class.
66 67 68 |
# File 'lib/markdown_ruby_documentation/generate.rb', line 66 def erb_methods_class @erb_methods_class end |
#load_path ⇒ Object (readonly)
Returns the value of attribute load_path.
66 67 68 |
# File 'lib/markdown_ruby_documentation/generate.rb', line 66 def load_path @load_path end |
#output_object ⇒ Object (readonly)
Returns the value of attribute output_object.
66 67 68 |
# File 'lib/markdown_ruby_documentation/generate.rb', line 66 def output_object @output_object end |
#subject ⇒ Object (readonly)
Returns the value of attribute subject.
66 67 68 |
# File 'lib/markdown_ruby_documentation/generate.rb', line 66 def subject @subject end |
#subject_location ⇒ Object (readonly)
Returns the value of attribute subject_location.
66 67 68 |
# File 'lib/markdown_ruby_documentation/generate.rb', line 66 def subject_location @subject_location end |
Instance Method Details
#call ⇒ Object
84 85 86 87 88 89 90 |
# File 'lib/markdown_ruby_documentation/generate.rb', line 84 def call methods_pipes = run_pipeline(methods_pipeline) text = run_pipeline(string_pipeline, methods_pipes) output_object.call(name: subject.name, text: text) self end |