Class: Module
- Defined in:
- lib/eac_ruby_utils/patches/module/patch.rb,
lib/eac_ruby_utils/patches/module/listable.rb,
lib/eac_ruby_utils/patches/module/immutable.rb,
lib/eac_ruby_utils/patches/module/require_sub.rb,
lib/eac_ruby_utils/patches/module/simple_cache.rb,
lib/eac_ruby_utils/patches/module/common_concern.rb,
lib/eac_ruby_utils/patches/module/console_speaker.rb
Instance Method Summary collapse
- #common_concern(&after_callback) ⇒ Object
- #enable_console_speaker ⇒ Object
- #enable_immutable ⇒ Object
- #enable_listable ⇒ Object
- #enable_simple_cache ⇒ Object
- #patch(patch_module) ⇒ Object
- #require_sub(file_path, options = {}) ⇒ Object
Instance Method Details
#common_concern(&after_callback) ⇒ Object
7 8 9 |
# File 'lib/eac_ruby_utils/patches/module/common_concern.rb', line 7 def common_concern(&after_callback) ::EacRubyUtils::CommonConcern.new(&after_callback).setup(self) end |
#enable_console_speaker ⇒ Object
7 8 9 |
# File 'lib/eac_ruby_utils/patches/module/console_speaker.rb', line 7 def enable_console_speaker ::EacRubyUtils.patch(self, ::EacRubyUtils::Console::Speaker) end |
#enable_immutable ⇒ Object
7 8 9 |
# File 'lib/eac_ruby_utils/patches/module/immutable.rb', line 7 def enable_immutable ::EacRubyUtils.patch(self, ::EacRubyUtils::Immutable) end |
#enable_listable ⇒ Object
7 8 9 |
# File 'lib/eac_ruby_utils/patches/module/listable.rb', line 7 def enable_listable ::EacRubyUtils.patch(self, ::EacRubyUtils::Listable) end |
#enable_simple_cache ⇒ Object
7 8 9 |
# File 'lib/eac_ruby_utils/patches/module/simple_cache.rb', line 7 def enable_simple_cache ::EacRubyUtils.patch(self, ::EacRubyUtils::SimpleCache) end |
#patch(patch_module) ⇒ Object
6 7 8 |
# File 'lib/eac_ruby_utils/patches/module/patch.rb', line 6 def patch(patch_module) ::EacRubyUtils.patch(self, patch_module) end |
#require_sub(file_path, options = {}) ⇒ Object
6 7 8 |
# File 'lib/eac_ruby_utils/patches/module/require_sub.rb', line 6 def require_sub(file_path, = {}) ::EacRubyUtils.require_sub(file_path, { base: self }.merge()) end |