Class: Klass

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

Constant Summary collapse

@@all =

[]

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, name, url) ⇒ Klass

count = 125



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

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

Instance Attribute Details

#documentationObject

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


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

def documentation
  @documentation
end

#methodsObject

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


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

def methods
  @methods
end

#nameObject

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


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

def name
  @name
end

#shortObject

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


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

def short
  @short
end

#typeObject

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


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

def type
  @type
end

#urlObject

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


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

def url
  @url
end

Class Method Details

.allObject



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

def self.all; @@all; end