Class: Meth

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_doc/data/method.rb

Constant Summary collapse

@@all =

[]

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = "n/a", name, url) ⇒ Meth

count 1839



9
10
11
12
13
14
# File 'lib/ruby_doc/data/method.rb', line 9

def initialize(type="n/a", name, url) 
  self.type = type
  self.name = name
  self.url = url
  @@all << self
end

Instance Attribute Details

#documentationObject

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


3
4
5
# File 'lib/ruby_doc/data/method.rb', line 3

def documentation
  @documentation
end

#nameObject

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


3
4
5
# File 'lib/ruby_doc/data/method.rb', line 3

def name
  @name
end

#typeObject

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


3
4
5
# File 'lib/ruby_doc/data/method.rb', line 3

def type
  @type
end

#urlObject

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


3
4
5
# File 'lib/ruby_doc/data/method.rb', line 3

def url
  @url
end

Class Method Details

.allObject



6
# File 'lib/ruby_doc/data/method.rb', line 6

def self.all; @@all; end

.find_by(url) ⇒ Object

find=============================


16
17
18
# File 'lib/ruby_doc/data/method.rb', line 16

def self.find_by(url) 
  Meth.all.find{|m| m.url == url}
end