Class: Klass
- Inherits:
-
Object
- Object
- Klass
- Defined in:
- lib/ruby_doc/data/class.rb
Constant Summary collapse
- @@all =
[]
Instance Attribute Summary collapse
-
#documentation ⇒ Object
properties============================.
-
#methods ⇒ Object
properties============================.
-
#name ⇒ Object
properties============================.
-
#short ⇒ Object
properties============================.
-
#type ⇒ Object
properties============================.
-
#url ⇒ Object
properties============================.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type, name, url) ⇒ Klass
constructor
count = 125.
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
#documentation ⇒ Object
properties============================
3 4 5 |
# File 'lib/ruby_doc/data/class.rb', line 3 def documentation @documentation end |
#methods ⇒ Object
properties============================
3 4 5 |
# File 'lib/ruby_doc/data/class.rb', line 3 def methods @methods end |
#name ⇒ Object
properties============================
3 4 5 |
# File 'lib/ruby_doc/data/class.rb', line 3 def name @name end |
#short ⇒ Object
properties============================
3 4 5 |
# File 'lib/ruby_doc/data/class.rb', line 3 def short @short end |
#type ⇒ Object
properties============================
3 4 5 |
# File 'lib/ruby_doc/data/class.rb', line 3 def type @type end |
#url ⇒ Object
properties============================
3 4 5 |
# File 'lib/ruby_doc/data/class.rb', line 3 def url @url end |
Class Method Details
.all ⇒ Object
6 |
# File 'lib/ruby_doc/data/class.rb', line 6 def self.all; @@all; end |