Class: ObjectAttorney::Base
- Inherits:
-
Object
- Object
- ObjectAttorney::Base
- Includes:
- ObjectAttorney
- Defined in:
- lib/object_attorney/base.rb
Constant Summary
Constants included from ObjectAttorney
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Instance Method Summary collapse
-
#initialize(object) ⇒ Base
constructor
A new instance of Base.
Methods included from ObjectAttorney
#defendant, #defendant_is_innocent?, included, #invalid?
Constructor Details
#initialize(object) ⇒ Base
Returns a new instance of Base.
9 10 11 |
# File 'lib/object_attorney/base.rb', line 9 def initialize(object) @object = object end |
Instance Attribute Details
#object ⇒ Object (readonly)
Returns the value of attribute object.
7 8 9 |
# File 'lib/object_attorney/base.rb', line 7 def object @object end |