Class: Leetcoder::BaseObject
- Inherits:
-
Object
- Object
- Leetcoder::BaseObject
- Defined in:
- lib/leetcoder/leetcoder/objects/base_object.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Instance Method Summary collapse
-
#initialize(object, **args) ⇒ BaseObject
constructor
A new instance of BaseObject.
Constructor Details
#initialize(object, **args) ⇒ BaseObject
Returns a new instance of BaseObject.
7 8 9 10 |
# File 'lib/leetcoder/leetcoder/objects/base_object.rb', line 7 def initialize(object, **args) @object = object @args = args end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
5 6 7 |
# File 'lib/leetcoder/leetcoder/objects/base_object.rb', line 5 def args @args end |
#object ⇒ Object (readonly)
Returns the value of attribute object.
5 6 7 |
# File 'lib/leetcoder/leetcoder/objects/base_object.rb', line 5 def object @object end |