module Oid::ConfigService::Helper

Defined in:

Instance Method Summary

Instance Method Detail

def add_component_config_service : Entitas::Entity #

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

entity.add_component_config_service

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

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

entity.add_component_config_service

def add_config_service(instance : Oid::Service::Config) : Entitas::Entity #

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

entity.add_config_service(1)

def config_service : Oid::ConfigService #

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


def config_service? : Bool #

def del_component_config_service : Entitas::Entity #

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

entity.del_config_service
entity.config_service # => nil

def del_config_service : Entitas::Entity #

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

entity.del_config_service
entity.config_service # => nil

def get_component_config_service : Oid::ConfigService #

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


def has_component_config_service? : Bool #

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


def has_config_service? : Bool #

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


def remove_component_config_service #

Append. Alias for #del_component_config_service


def remove_config_service #

Append. Alias for #del_config_service


def replace_component_config_service(component : Oid::ConfigService) #

Append. Alias for #replace_config_service


def replace_component_config_service(**args) #

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

entity.replace_config_service
entity.get_config_service # => (new_comp)

def replace_config_service(instance : Oid::Service::Config) #

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)

def replace_config_service(component : Oid::ConfigService) #

Will replace the current component with the new one provided

entity.replace_component_config_service(new_comp)
entity.get_config_service # => (new_comp)