Class: DevSystem::AppShell::Domain
- Inherits:
-
Object
- Object
- DevSystem::AppShell::Domain
- Defined in:
- lib/dev_system/subsystems/shell/shells/app_shell.rb
Overview
A PORO representing a top-level namespace of LizaRB.
Instance Attribute Summary collapse
-
#color ⇒ Object
readonly
Returns the value of attribute color.
-
#layers ⇒ Object
readonly
Returns the value of attribute layers.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #empty? ⇒ Boolean
-
#initialize(name:, color:, layers:) ⇒ Domain
constructor
A new instance of Domain.
Constructor Details
#initialize(name:, color:, layers:) ⇒ Domain
658 659 660 661 662 |
# File 'lib/dev_system/subsystems/shell/shells/app_shell.rb', line 658 def initialize(name: , color: , layers: ) @name = name @color = color @layers = layers end |
Instance Attribute Details
#color ⇒ Object (readonly)
Returns the value of attribute color.
664 665 666 |
# File 'lib/dev_system/subsystems/shell/shells/app_shell.rb', line 664 def color @color end |
#layers ⇒ Object (readonly)
Returns the value of attribute layers.
664 665 666 |
# File 'lib/dev_system/subsystems/shell/shells/app_shell.rb', line 664 def layers @layers end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
664 665 666 |
# File 'lib/dev_system/subsystems/shell/shells/app_shell.rb', line 664 def name @name end |
Instance Method Details
#empty? ⇒ Boolean
666 667 668 |
# File 'lib/dev_system/subsystems/shell/shells/app_shell.rb', line 666 def empty? layers.map(&:objects).flatten.empty? end |