module Oid::ConfigService::Helper
Defined in:
Instance Method Summary
-
#add_component_config_service : Entitas::Entity
Add a
Oid::ConfigService
to the entity. -
#add_component_config_service(**args) : Entitas::Entity
Add a
Oid::ConfigService
to the entity. -
#add_config_service(instance : Oid::Service::Config) : Entitas::Entity
Add a
Oid::ConfigService
to the entity. -
#config_service : Oid::ConfigService
Will return the component that is a
Oid::ConfigService
or raise -
#config_service? : Bool
Alias.
-
#del_component_config_service : Entitas::Entity
Delete
Oid::ConfigService
from the entity. -
#del_config_service : Entitas::Entity
Delete
Oid::ConfigService
from the entity. -
#get_component_config_service : Oid::ConfigService
Will return the component that is a
Oid::ConfigService
or raise -
#has_component_config_service? : Bool
Will return true if the entity has an component
Oid::ConfigService
or false if it does not -
#has_config_service? : Bool
Will return true if the entity has an component
Oid::ConfigService
or false if it does not -
#remove_component_config_service
Append.
-
#remove_config_service
Append.
-
#replace_component_config_service(component : Oid::ConfigService)
Append.
-
#replace_component_config_service(**args)
Will replace the current component with the new one generated from the provided arguments
-
#replace_config_service(instance : Oid::Service::Config)
Will replace the current component with the new one generated from the provided arguments
-
#replace_config_service(component : Oid::ConfigService)
Will replace the current component with the new one provided
Instance Method Detail
Add a Oid::ConfigService
to the entity. Returns self
to allow chainables
entity.add_component_config_service
Add a Oid::ConfigService
to the entity. Returns self
to allow chainables
entity.add_component_config_service
Add a Oid::ConfigService
to the entity. Returns self
to allow chainables
entity.add_config_service(1)
Will return the component that is a Oid::ConfigService
or raise
Delete Oid::ConfigService
from the entity. Returns self
to allow chainables
entity.del_config_service
entity.config_service # => nil
Delete Oid::ConfigService
from the entity. Returns self
to allow chainables
entity.del_config_service
entity.config_service # => nil
Will return the component that is a Oid::ConfigService
or raise
Will return true if the entity has an component Oid::ConfigService
or false if it does not
Will return true if the entity has an component Oid::ConfigService
or false if it does not
Append. Alias for #replace_config_service
Will replace the current component with the new one generated from the provided arguments
entity.replace_config_service
entity.get_config_service # => (new_comp)
Will replace the current component with the new one generated from the provided arguments
entity.replace_config_service(value: 1)
entity.get_config_service # => (new_comp)
or
entity.replace_config_service(1)
entity.get_config_service # => (new_comp)
Will replace the current component with the new one provided
entity.replace_component_config_service(new_comp)
entity.get_config_service # => (new_comp)