Module: RDoc::Generator::Horo::ClassesHelper

Defined in:
lib/rdoc/generator/horo.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#klassObject

Returns the value of attribute klass.



161
162
163
# File 'lib/rdoc/generator/horo.rb', line 161

def klass
  @klass
end

#relative_prefixObject

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_urlObject

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



169
170
171
# File 'lib/rdoc/generator/horo.rb', line 169

def link_to text, path
  "<a href=\"#{path}\">#{text}</a>"
end

#titleObject



165
166
167
# File 'lib/rdoc/generator/horo.rb', line 165

def title
  (klass.module? ? 'Module: ' : 'Class: ') + klass.full_name
end