module Oid::Components::Application::Helper
Defined in:
Instance Method Summary
-
#add_application(value : Oid::Controller::Application) : Entitas::Entity
Add a
Oid::Components::Application
to the entity. -
#add_component_application : Entitas::Entity
Add a
Oid::Components::Application
to the entity. -
#add_component_application(**args) : Entitas::Entity
Add a
Oid::Components::Application
to the entity. -
#application : Oid::Components::Application
Will return the component that is a
Oid::Components::Application
or raise -
#application? : Bool
Alias.
-
#del_application : Entitas::Entity
Delete
Oid::Components::Application
from the entity. -
#del_component_application : Entitas::Entity
Delete
Oid::Components::Application
from the entity. -
#get_component_application : Oid::Components::Application
Will return the component that is a
Oid::Components::Application
or raise -
#has_application? : Bool
Will return true if the entity has an component
Oid::Components::Application
or false if it does not -
#has_component_application? : Bool
Will return true if the entity has an component
Oid::Components::Application
or false if it does not -
#remove_application
Append.
-
#remove_component_application
Append.
-
#replace_application(component : Oid::Components::Application)
Will replace the current component with the new one provided
-
#replace_application(value : Oid::Controller::Application)
Will replace the current component with the new one generated from the provided arguments
-
#replace_component_application(component : Oid::Components::Application)
Append.
-
#replace_component_application(**args)
Will replace the current component with the new one generated from the provided arguments
Instance Method Detail
Add a Oid::Components::Application
to the entity. Returns self
to allow chainables
entity.add_application(1)
Add a Oid::Components::Application
to the entity. Returns self
to allow chainables
entity.add_component_application
Add a Oid::Components::Application
to the entity. Returns self
to allow chainables
entity.add_component_application
Will return the component that is a Oid::Components::Application
or raise
Delete Oid::Components::Application
from the entity. Returns self
to allow chainables
entity.del_application
entity.application # => nil
Delete Oid::Components::Application
from the entity. Returns self
to allow chainables
entity.del_application
entity.application # => nil
Will return the component that is a Oid::Components::Application
or raise
Will return true if the entity has an component Oid::Components::Application
or false if it does not
Will return true if the entity has an component Oid::Components::Application
or false if it does not
Will replace the current component with the new one provided
entity.replace_component_application(new_comp)
entity.get_application # => (new_comp)
Will replace the current component with the new one generated from the provided arguments
entity.replace_application(value: 1)
entity.get_application # => (new_comp)
or
entity.replace_application(1)
entity.get_application # => (new_comp)
Append. Alias for #replace_application
Will replace the current component with the new one generated from the provided arguments
entity.replace_application
entity.get_application # => (new_comp)