class Module

def acts_as_abstract(*methods)

Returns:
  • (void) -

Parameters:
  • methods (Array) --
def acts_as_abstract(*methods)
  include ::EacRubyUtils::ActsAsAbstract
  abstract_methods(*methods)
end

def acts_as_immutable

def acts_as_immutable
  ::EacRubyUtils.patch(self, ::EacRubyUtils::ActsAsImmutable)
end

def acts_as_instance_method

Returns:
  • (EacRubyUtils::ActsAsInstanceMethod) -
def acts_as_instance_method
  ::EacRubyUtils::ActsAsInstanceMethod.new(self).setup
end

def common_concern(&after_callback)

def common_concern(&after_callback)
  ::EacRubyUtils::CommonConcern.new(&after_callback).setup(self)
end

def compare_by(*fields)

def compare_by(*fields)
  ::EacRubyUtils::CompareBy.new(fields).apply(self)
end

def enable_abstract_methods(*methods)

Deprecated:
  • Use {#acts_as_abstract} instead.
def enable_abstract_methods(*methods)
  acts_as_abstract(*methods)
end

def enable_context

Patches module with [EacRubyUtils::Contextualizable].
def enable_context
  ::EacRubyUtils.patch(self, ::EacRubyUtils::Contextualizable)
end

def enable_immutable

Deprecated:
  • Use {#acts_as_immutable} instead.
def enable_immutable
  ::EacRubyUtils.patch(self, ::EacRubyUtils::ActsAsImmutable)
end

def enable_listable

def enable_listable
  ::EacRubyUtils.patch(self, ::EacRubyUtils::Listable)
end

def enable_method_class

def enable_method_class
  ::EacRubyUtils.patch(self, ::EacRubyUtils::MethodClass)
end

def enable_simple_cache

def enable_simple_cache
  ::EacRubyUtils.patch(self, ::EacRubyUtils::SimpleCache)
end

def enable_speaker

def enable_speaker
  include ::EacRubyUtils::Speaker::Sender
end

def enable_static_method_class

def enable_static_method_class
  ::EacRubyUtils.patch(self, ::EacRubyUtils::StaticMethodClass)
end

def i18n_translate(entry_suffix, values = {})

def i18n_translate(entry_suffix, values = {})
  ::EacRubyUtils::Locales::ModuleI18nTranslate.new(self, entry_suffix, values).result
end

def patch(patch_module)

def patch(patch_module)
  ::EacRubyUtils.patch(self, patch_module)
end

def require_sub(file_path, options = {})

def require_sub(file_path, options = {})
  ::EacRubyUtils.require_sub(file_path, { base: self }.merge(options))
end