Module: Spud::Core::ClassMethods
- Included in:
- Spud::Core
- Defined in:
- lib/tb_core/spud_core.rb
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_signature, *args, &block) ⇒ Object
5
6
7
8
9
10
11
12
13
14
15
|
# File 'lib/tb_core/spud_core.rb', line 5
def method_missing(method_signature, *args, &block)
if TbCore.respond_to?(method_signature)
ActiveSupport::Deprecation.warn(
'The Spud::Core namespace is being replaced by TbCore. Please update your app code accordingly.',
caller
)
TbCore.__send__(method_signature, *args, &block)
else
super
end
end
|
Instance Method Details
#respond_to_missing?(method_signature) ⇒ Boolean
17
18
19
|
# File 'lib/tb_core/spud_core.rb', line 17
def respond_to_missing?(method_signature)
TbCore.respond_to?(method_signature) || super
end
|