Class: Explicit::Documentation::Page::Partial
- Inherits:
-
Object
- Object
- Explicit::Documentation::Page::Partial
- Defined in:
- lib/explicit/documentation/page/partial.rb
Instance Attribute Summary collapse
-
#partial ⇒ Object
readonly
Returns the value of attribute partial.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
- #anchor ⇒ Object
-
#initialize(title:, partial:) ⇒ Partial
constructor
A new instance of Partial.
- #request? ⇒ Boolean
Constructor Details
#initialize(title:, partial:) ⇒ Partial
Returns a new instance of Partial.
7 8 9 10 |
# File 'lib/explicit/documentation/page/partial.rb', line 7 def initialize(title:, partial:) @title = title @partial = partial end |
Instance Attribute Details
#partial ⇒ Object (readonly)
Returns the value of attribute partial.
5 6 7 |
# File 'lib/explicit/documentation/page/partial.rb', line 5 def partial @partial end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
5 6 7 |
# File 'lib/explicit/documentation/page/partial.rb', line 5 def title @title end |
Instance Method Details
#anchor ⇒ Object
16 17 18 |
# File 'lib/explicit/documentation/page/partial.rb', line 16 def anchor title.gsub(" ", "-").downcase end |
#request? ⇒ Boolean
12 13 14 |
# File 'lib/explicit/documentation/page/partial.rb', line 12 def request? false end |