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

Returns a new instance of 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

Returns:

  • (Boolean)


666
667
668
# File 'lib/dev_system/subsystems/shell/shells/app_shell.rb', line 666

def empty?
  layers.map(&:objects).flatten.empty?
end