Class: RDocF95::RI::MethodEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/rdoc-f95/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.



150
151
152
153
154
155
# File 'lib/rdoc-f95/ri/cache.rb', line 150

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.



147
148
149
# File 'lib/rdoc-f95/ri/cache.rb', line 147

def name
  @name
end

#path_nameObject (readonly)

Returns the value of attribute path_name.



148
149
150
# File 'lib/rdoc-f95/ri/cache.rb', line 148

def path_name
  @path_name
end

Instance Method Details

#full_nameObject



157
158
159
160
161
162
163
164
165
166
167
# File 'lib/rdoc-f95/ri/cache.rb', line 157

def full_name
  res = @in_class.full_name
  unless res.empty?
    if @is_class_method
      res << "::"
    else
      res << "#"
    end
  end
  res << @name
end