Module: RubyApp::Mixins::DelegateMixin
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *arguments, &block) ⇒ Object
11
12
13
|
# File 'lib/ruby_app/mixins/delegate_mixin.rb', line 11
def method_missing(name, *arguments, &block)
return self.get.send(name, *arguments, &block)
end
|
Instance Method Details
#exists? ⇒ Boolean
7
8
9
|
# File 'lib/ruby_app/mixins/delegate_mixin.rb', line 7
def exists?
return self.get != nil
end
|