module Oid::TimeService::Helper
Defined in:
Instance Method Summary
-
#add_component_time_service : Entitas::Entity
Add a
Oid::TimeService
to the entity. -
#add_component_time_service(**args) : Entitas::Entity
Add a
Oid::TimeService
to the entity. -
#add_time_service(instance : Oid::Service::Time) : Entitas::Entity
Add a
Oid::TimeService
to the entity. -
#del_component_time_service : Entitas::Entity
Delete
Oid::TimeService
from the entity. -
#del_time_service : Entitas::Entity
Delete
Oid::TimeService
from the entity. -
#get_component_time_service : Oid::TimeService
Will return the component that is a
Oid::TimeService
or raise -
#has_component_time_service? : Bool
Will return true if the entity has an component
Oid::TimeService
or false if it does not -
#has_time_service? : Bool
Will return true if the entity has an component
Oid::TimeService
or false if it does not -
#remove_component_time_service
Append.
-
#remove_time_service
Append.
-
#replace_component_time_service(component : Oid::TimeService)
Append.
-
#replace_component_time_service(**args)
Will replace the current component with the new one generated from the provided arguments
-
#replace_time_service(instance : Oid::Service::Time)
Will replace the current component with the new one generated from the provided arguments
-
#replace_time_service(component : Oid::TimeService)
Will replace the current component with the new one provided
-
#time_service : Oid::TimeService
Will return the component that is a
Oid::TimeService
or raise -
#time_service? : Bool
Alias.
Instance Method Detail
Add a Oid::TimeService
to the entity. Returns self
to allow chainables
entity.add_component_time_service
Add a Oid::TimeService
to the entity. Returns self
to allow chainables
entity.add_component_time_service
Add a Oid::TimeService
to the entity. Returns self
to allow chainables
entity.add_time_service(1)
Delete Oid::TimeService
from the entity. Returns self
to allow chainables
entity.del_time_service
entity.time_service # => nil
Delete Oid::TimeService
from the entity. Returns self
to allow chainables
entity.del_time_service
entity.time_service # => nil
Will return the component that is a Oid::TimeService
or raise
Will return true if the entity has an component Oid::TimeService
or false if it does not
Will return true if the entity has an component Oid::TimeService
or false if it does not
Append. Alias for #replace_time_service
Will replace the current component with the new one generated from the provided arguments
entity.replace_time_service
entity.get_time_service # => (new_comp)
Will replace the current component with the new one generated from the provided arguments
entity.replace_time_service(value: 1)
entity.get_time_service # => (new_comp)
or
entity.replace_time_service(1)
entity.get_time_service # => (new_comp)
Will replace the current component with the new one provided
entity.replace_component_time_service(new_comp)
entity.get_time_service # => (new_comp)