Class: WebRI::InstanceMethodEntry

Inherits:
Entry
  • Object
show all
Defined in:
lib/webri.rb

Instance Attribute Summary

Attributes inherited from Entry

#full_name, #paths

Class Method Summary collapse

Methods inherited from Entry

choices, full_name_for_choice, #initialize, uri

Constructor Details

This class inherits a constructor from WebRI::Entry

Class Method Details

.choice(full_name, path) ⇒ Object

Return a choice string for a path.



311
312
313
314
315
# File 'lib/webri.rb', line 311

def self.choice(full_name, path)
  class_name, _ = path.split('.html#method-i-')
  class_name.gsub!('/', '::')
  "#{full_name} (in #{class_name})"
end