Class: Cheep::Object
- Inherits:
-
Object
- Object
- Cheep::Object
- Defined in:
- lib/object.rb
Overview
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at mozilla.org/MPL/2.0/.
Instance Attribute Summary collapse
-
#ins ⇒ Object
readonly
Returns the value of attribute ins.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#num ⇒ Object
readonly
Returns the value of attribute num.
Instance Method Summary collapse
- #[](*args) ⇒ Object
-
#initialize(name, num, *args) ⇒ Object
constructor
A new instance of Object.
- #to_patch ⇒ Object
Constructor Details
#initialize(name, num, *args) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/object.rb', line 8 def initialize(name, num, *args) @name = name @args = args @num = num @ins = [] end |
Instance Attribute Details
#ins ⇒ Object (readonly)
Returns the value of attribute ins.
6 7 8 |
# File 'lib/object.rb', line 6 def ins @ins end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/object.rb', line 6 def name @name end |
#num ⇒ Object (readonly)
Returns the value of attribute num.
6 7 8 |
# File 'lib/object.rb', line 6 def num @num end |