Class: WebRI::SingletonMethodEntry

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.



300
301
302
303
304
# File 'lib/webri.rb', line 300

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