module Oid::ViewService::Helper

Defined in:

Instance Method Summary

Instance Method Detail

def add_component_view_service : Entitas::Entity #

Add a Oid::ViewService to the entity. Returns self to allow chainables

entity.add_component_view_service

def add_component_view_service(**args) : Entitas::Entity #

Add a Oid::ViewService to the entity. Returns self to allow chainables

entity.add_component_view_service

def add_view_service(instance : Oid::Service::View) : Entitas::Entity #

Add a Oid::ViewService to the entity. Returns self to allow chainables

entity.add_view_service(1)

def del_component_view_service : Entitas::Entity #

Delete Oid::ViewService from the entity. Returns self to allow chainables

entity.del_view_service
entity.view_service # => nil

def del_view_service : Entitas::Entity #

Delete Oid::ViewService from the entity. Returns self to allow chainables

entity.del_view_service
entity.view_service # => nil

def get_component_view_service : Oid::ViewService #

Will return the component that is a Oid::ViewService or raise


def has_component_view_service? : Bool #

Will return true if the entity has an component Oid::ViewService or false if it does not


def has_view_service? : Bool #

Will return true if the entity has an component Oid::ViewService or false if it does not


def remove_component_view_service #

Append. Alias for #del_component_view_service


def remove_view_service #

Append. Alias for #del_view_service


def replace_component_view_service(component : Oid::ViewService) #

Append. Alias for #replace_view_service


def replace_component_view_service(**args) #

Will replace the current component with the new one generated from the provided arguments

entity.replace_view_service
entity.get_view_service # => (new_comp)

def replace_view_service(instance : Oid::Service::View) #

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)

def replace_view_service(component : Oid::ViewService) #

Will replace the current component with the new one provided

entity.replace_component_view_service(new_comp)
entity.get_view_service # => (new_comp)

def view_service : Oid::ViewService #

Will return the component that is a Oid::ViewService or raise


def view_service? : Bool #

Alias. See #has_view_service?