module Oid::ViewService::Helper
Defined in:
Instance Method Summary
-
#add_component_view_service : Entitas::Entity
Add a
Oid::ViewService
to the entity. -
#add_component_view_service(**args) : Entitas::Entity
Add a
Oid::ViewService
to the entity. -
#add_view_service(instance : Oid::Service::View) : Entitas::Entity
Add a
Oid::ViewService
to the entity. -
#del_component_view_service : Entitas::Entity
Delete
Oid::ViewService
from the entity. -
#del_view_service : Entitas::Entity
Delete
Oid::ViewService
from the entity. -
#get_component_view_service : Oid::ViewService
Will return the component that is a
Oid::ViewService
or raise -
#has_component_view_service? : Bool
Will return true if the entity has an component
Oid::ViewService
or false if it does not -
#has_view_service? : Bool
Will return true if the entity has an component
Oid::ViewService
or false if it does not -
#remove_component_view_service
Append.
-
#remove_view_service
Append.
-
#replace_component_view_service(component : Oid::ViewService)
Append.
-
#replace_component_view_service(**args)
Will replace the current component with the new one generated from the provided arguments
-
#replace_view_service(instance : Oid::Service::View)
Will replace the current component with the new one generated from the provided arguments
-
#replace_view_service(component : Oid::ViewService)
Will replace the current component with the new one provided
-
#view_service : Oid::ViewService
Will return the component that is a
Oid::ViewService
or raise -
#view_service? : Bool
Alias.
Instance Method Detail
Add a Oid::ViewService
to the entity. Returns self
to allow chainables
entity.add_component_view_service
Add a Oid::ViewService
to the entity. Returns self
to allow chainables
entity.add_component_view_service
Add a Oid::ViewService
to the entity. Returns self
to allow chainables
entity.add_view_service(1)
Delete Oid::ViewService
from the entity. Returns self
to allow chainables
entity.del_view_service
entity.view_service # => nil
Delete Oid::ViewService
from the entity. Returns self
to allow chainables
entity.del_view_service
entity.view_service # => nil
Will return the component that is a Oid::ViewService
or raise
Will return true if the entity has an component Oid::ViewService
or false if it does not
Will return true if the entity has an component Oid::ViewService
or false if it does not
Append. Alias for #replace_view_service
Will replace the current component with the new one generated from the provided arguments
entity.replace_view_service
entity.get_view_service # => (new_comp)
Will replace the current component with the new one generated from the provided arguments
entity.replace_view_service(value: 1)
entity.get_view_service # => (new_comp)
or
entity.replace_view_service(1)
entity.get_view_service # => (new_comp)
Will replace the current component with the new one provided
entity.replace_component_view_service(new_comp)
entity.get_view_service # => (new_comp)