Class: RailsAiBridge::Registry::PackDefinition

Inherits:
Data
  • Object
show all
Defined in:
lib/rails_ai_bridge/registry/pack_definition.rb

Overview

Immutable value object describing a single pack's source and loading behaviour.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#always_loadedObject (readonly)

Returns the value of attribute always_loaded

Returns:

  • (Object)

    the current value of always_loaded



18
19
20
21
# File 'lib/rails_ai_bridge/registry/pack_definition.rb', line 18

PackDefinition = Data.define(:source, :tile, :always_loaded, :depends_on, :ref) do
  # @return [Boolean]
  def always_loaded? = always_loaded
end

#depends_onObject (readonly)

Returns the value of attribute depends_on

Returns:

  • (Object)

    the current value of depends_on



18
19
20
21
# File 'lib/rails_ai_bridge/registry/pack_definition.rb', line 18

PackDefinition = Data.define(:source, :tile, :always_loaded, :depends_on, :ref) do
  # @return [Boolean]
  def always_loaded? = always_loaded
end

#refObject (readonly)

Returns the value of attribute ref

Returns:

  • (Object)

    the current value of ref



18
19
20
21
# File 'lib/rails_ai_bridge/registry/pack_definition.rb', line 18

PackDefinition = Data.define(:source, :tile, :always_loaded, :depends_on, :ref) do
  # @return [Boolean]
  def always_loaded? = always_loaded
end

#sourceObject (readonly)

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



18
19
20
21
# File 'lib/rails_ai_bridge/registry/pack_definition.rb', line 18

PackDefinition = Data.define(:source, :tile, :always_loaded, :depends_on, :ref) do
  # @return [Boolean]
  def always_loaded? = always_loaded
end

#tileObject (readonly)

Returns the value of attribute tile

Returns:

  • (Object)

    the current value of tile



18
19
20
21
# File 'lib/rails_ai_bridge/registry/pack_definition.rb', line 18

PackDefinition = Data.define(:source, :tile, :always_loaded, :depends_on, :ref) do
  # @return [Boolean]
  def always_loaded? = always_loaded
end

Instance Method Details

#always_loaded?Boolean

Returns:

  • (Boolean)


20
# File 'lib/rails_ai_bridge/registry/pack_definition.rb', line 20

def always_loaded? = always_loaded