Class: DevSystem::AppShell::Domain

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#colorObject (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

#layersObject (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

#nameObject (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