Module: HatiCommand::Callee
- Defined in:
- lib/hati_command/callee.rb
Overview
Module for adding callable functionality to a class. This module implements the callable pattern, allowing classes to be called like functions while maintaining object-oriented principles.
Defined Under Namespace
Modules: CalleeClassMethods
Class Method Summary collapse
-
.included(base) ⇒ void
private
Extends the including class with callable functionality.
-
.whoami ⇒ String
Returns the identity of the module.
Class Method Details
.included(base) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Extends the including class with callable functionality
33 34 35 |
# File 'lib/hati_command/callee.rb', line 33 def self.included(base) base.extend(CalleeClassMethods) end |
.whoami ⇒ String
Note:
This is a work in progress method
Returns the identity of the module
41 42 43 |
# File 'lib/hati_command/callee.rb', line 41 def self.whoami 'My Name is Callee' end |