Module: RDoc::Generator::Horo::ClassesHelper
- Defined in:
- lib/rdoc/generator/horo.rb
Instance Attribute Summary collapse
-
#klass ⇒ Object
Returns the value of attribute klass.
-
#relative_prefix ⇒ Object
Returns the value of attribute relative_prefix.
-
#style_url ⇒ Object
Returns the value of attribute style_url.
Instance Method Summary collapse
Instance Attribute Details
#klass ⇒ Object
Returns the value of attribute klass.
161 162 163 |
# File 'lib/rdoc/generator/horo.rb', line 161 def klass @klass end |
#relative_prefix ⇒ Object
Returns the value of attribute relative_prefix.
163 164 165 |
# File 'lib/rdoc/generator/horo.rb', line 163 def relative_prefix @relative_prefix end |
#style_url ⇒ Object
Returns the value of attribute style_url.
162 163 164 |
# File 'lib/rdoc/generator/horo.rb', line 162 def style_url @style_url end |
Instance Method Details
#link_to(text, path) ⇒ Object
169 170 171 |
# File 'lib/rdoc/generator/horo.rb', line 169 def link_to text, path "<a href=\"#{path}\">#{text}</a>" end |
#title ⇒ Object
165 166 167 |
# File 'lib/rdoc/generator/horo.rb', line 165 def title (klass.module? ? 'Module: ' : 'Class: ') + klass.full_name end |