Class: RI::MethodEntry
- Inherits:
-
Object
- Object
- RI::MethodEntry
- Defined in:
- lib/rdoc/ri/ri_cache.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#path_name ⇒ Object
readonly
Returns the value of attribute path_name.
Instance Method Summary collapse
- #full_name ⇒ Object
-
#initialize(path_name, name, is_class_method, in_class) ⇒ MethodEntry
constructor
A new instance of MethodEntry.
Constructor Details
#initialize(path_name, name, is_class_method, in_class) ⇒ MethodEntry
Returns a new instance of MethodEntry.
149 150 151 152 153 154 |
# File 'lib/rdoc/ri/ri_cache.rb', line 149 def initialize(path_name, name, is_class_method, in_class) @path_name = path_name @name = name @is_class_method = is_class_method @in_class = in_class end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name
146 147 148 |
# File 'lib/rdoc/ri/ri_cache.rb', line 146 def name @name end |
#path_name ⇒ Object (readonly)
Returns the value of attribute path_name
147 148 149 |
# File 'lib/rdoc/ri/ri_cache.rb', line 147 def path_name @path_name end |
Instance Method Details
#full_name ⇒ Object
156 157 158 159 160 161 162 163 164 165 166 |
# File 'lib/rdoc/ri/ri_cache.rb', line 156 def full_name res = @in_class.full_name unless res.empty? if @is_class_method res << "::" else res << "#" end end res << @name end |