Class: Repla::Dependencies::Dependency
- Inherits:
-
Object
- Object
- Repla::Dependencies::Dependency
- Defined in:
- lib/repla/dependencies/lib/model.rb
Overview
Dependency
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(name, type, options = {}) ⇒ Dependency
constructor
A new instance of Dependency.
Constructor Details
#initialize(name, type, options = {}) ⇒ Dependency
Returns a new instance of Dependency.
6 7 8 9 10 |
# File 'lib/repla/dependencies/lib/model.rb', line 6 def initialize(name, type, = {}) @name = name @type = type = end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/repla/dependencies/lib/model.rb', line 5 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/repla/dependencies/lib/model.rb', line 5 def end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
5 6 7 |
# File 'lib/repla/dependencies/lib/model.rb', line 5 def type @type end |