Class: Meth

Inherits:
Object
  • Object
show all
Extended by:
DataExtras
Defined in:
lib/ruby_doc/data/meth.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from DataExtras

all, display, displayMeth, extended, last, list, list, listMeths, nextPage, page2, page3, page4, paginateALL, superSEARCH, uie, uie

Constructor Details

#initialize(name, url) ⇒ Meth



7
8
9
10
11
12
# File 'lib/ruby_doc/data/meth.rb', line 7

def initialize(name, url) 
  self.name = name
  self.url = url
  @@all << self
  self.docs = []
end

Instance Attribute Details

#descriptionObject

properties===================


5
6
7
# File 'lib/ruby_doc/data/meth.rb', line 5

def description
  @description
end

#docsObject

properties===================


5
6
7
# File 'lib/ruby_doc/data/meth.rb', line 5

def docs
  @docs
end

#nameObject

properties===================


5
6
7
# File 'lib/ruby_doc/data/meth.rb', line 5

def name
  @name
end

#typeObject

properties===================


5
6
7
# File 'lib/ruby_doc/data/meth.rb', line 5

def type
  @type
end

#urlObject

properties===================


5
6
7
# File 'lib/ruby_doc/data/meth.rb', line 5

def url
  @url
end

Class Method Details

.find(name) ⇒ Object



14
15
16
# File 'lib/ruby_doc/data/meth.rb', line 14

def self.find(name)
  self.all.find{|meth| meth.name.downcase == name.downcase}
end