Class: MarkdownRubyDocumentation::GitHubLink::MethodUrl
- Inherits:
-
Object
- Object
- MarkdownRubyDocumentation::GitHubLink::MethodUrl
- Defined in:
- lib/markdown_ruby_documentation/git_hub_link.rb
Instance Attribute Summary collapse
-
#base_url ⇒ Object
readonly
Returns the value of attribute base_url.
-
#method_object ⇒ Object
readonly
Returns the value of attribute method_object.
-
#root ⇒ Object
readonly
Returns the value of attribute root.
-
#subject ⇒ Object
readonly
Returns the value of attribute subject.
Instance Method Summary collapse
-
#initialize(subject:, method_object:, base_url: GitHubProject.url, root: GitHubProject.root_path) ⇒ MethodUrl
constructor
A new instance of MethodUrl.
- #to_s ⇒ Object
Constructor Details
#initialize(subject:, method_object:, base_url: GitHubProject.url, root: GitHubProject.root_path) ⇒ MethodUrl
Returns a new instance of MethodUrl.
61 62 63 64 65 66 |
# File 'lib/markdown_ruby_documentation/git_hub_link.rb', line 61 def initialize(subject:, method_object:, base_url: GitHubProject.url, root: GitHubProject.root_path) @subject = subject @base_url = base_url @root = root @method_object = method_object end |
Instance Attribute Details
#base_url ⇒ Object (readonly)
Returns the value of attribute base_url.
59 60 61 |
# File 'lib/markdown_ruby_documentation/git_hub_link.rb', line 59 def base_url @base_url end |
#method_object ⇒ Object (readonly)
Returns the value of attribute method_object.
59 60 61 |
# File 'lib/markdown_ruby_documentation/git_hub_link.rb', line 59 def method_object @method_object end |
#root ⇒ Object (readonly)
Returns the value of attribute root.
59 60 61 |
# File 'lib/markdown_ruby_documentation/git_hub_link.rb', line 59 def root @root end |
#subject ⇒ Object (readonly)
Returns the value of attribute subject.
59 60 61 |
# File 'lib/markdown_ruby_documentation/git_hub_link.rb', line 59 def subject @subject end |