Class: AxR::Layer
- Inherits:
-
Object
- Object
- AxR::Layer
- Defined in:
- lib/axr/layer.rb
Instance Attribute Summary collapse
-
#familiar_with ⇒ Object
readonly
Returns the value of attribute familiar_with.
-
#isolated ⇒ Object
(also: #isolated?)
readonly
Returns the value of attribute isolated.
-
#level ⇒ Object
readonly
Returns the value of attribute level.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, level, options = {}) ⇒ Layer
constructor
A new instance of Layer.
Constructor Details
#initialize(name, level, options = {}) ⇒ Layer
Returns a new instance of Layer.
7 8 9 10 11 12 |
# File 'lib/axr/layer.rb', line 7 def initialize(name, level, = {}) @name = name @level = level @isolated = .fetch(:isolated, false) @familiar_with = *.fetch(:familiar_with, []) end |
Instance Attribute Details
#familiar_with ⇒ Object (readonly)
Returns the value of attribute familiar_with.
5 6 7 |
# File 'lib/axr/layer.rb', line 5 def familiar_with @familiar_with end |
#isolated ⇒ Object (readonly) Also known as: isolated?
Returns the value of attribute isolated.
5 6 7 |
# File 'lib/axr/layer.rb', line 5 def isolated @isolated end |
#level ⇒ Object (readonly)
Returns the value of attribute level.
5 6 7 |
# File 'lib/axr/layer.rb', line 5 def level @level end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/axr/layer.rb', line 5 def name @name end |