Class: Bri::Match::Method

Inherits:
Base
  • Object
show all
Includes:
Templates::Helpers
Defined in:
lib/bri/match/method.rb

Constant Summary collapse

TEMPLATE =
Bri::Templates::METHOD_DESCRIPTION

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Templates::Helpers

add_separators, array_to_width, hrule, section_header

Methods inherited from Base

#to_s

Constructor Details

#initialize(rdoc_method) ⇒ Method

Returns a new instance of Method.



9
10
11
12
13
14
15
# File 'lib/bri/match/method.rb', line 9

def initialize( rdoc_method )
  @full_name = rdoc_method.full_name
  @call_syntaxes = rdoc_method.arglists.split( "\n" ).
                                        map { |e| "  " + e }.
                                        join( "\n" ) + "\n" rescue ''
  @description_paragraphs = build_description( rdoc_method.comment.parts )
end

Instance Attribute Details

#call_syntaxesObject

Returns the value of attribute call_syntaxes.



7
8
9
# File 'lib/bri/match/method.rb', line 7

def call_syntaxes
  @call_syntaxes
end

#description_paragraphsObject

Returns the value of attribute description_paragraphs.



7
8
9
# File 'lib/bri/match/method.rb', line 7

def description_paragraphs
  @description_paragraphs
end

#full_nameObject

Returns the value of attribute full_name.



7
8
9
# File 'lib/bri/match/method.rb', line 7

def full_name
  @full_name
end