Class: RI::MethodEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/rdoc/ri/ri_cache.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name



146
147
148
# File 'lib/rdoc/ri/ri_cache.rb', line 146

def name
  @name
end

#path_nameObject (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_nameObject



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