Class: Mayu::Resources::Resource::Wrapper
- Inherits:
-
BasicObject
- Extended by:
- T::Sig
- Defined in:
- lib/mayu/resources/resource.rb
Instance Method Summary
collapse
Constructor Details
#initialize(impl) ⇒ Wrapper
Returns a new instance of Wrapper.
13
14
15
|
# File 'lib/mayu/resources/resource.rb', line 13
def initialize(impl)
@impl = impl
end
|
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, *args, **kwargs, &block) ⇒ Object
25
26
27
|
# File 'lib/mayu/resources/resource.rb', line 25
def method_missing(meth, *args, **kwargs, &block)
@impl.send(meth, *args, **kwargs, &block)
end
|
Instance Method Details
#__replace_impl!(impl) ⇒ Object
30
31
32
|
# File 'lib/mayu/resources/resource.rb', line 30
def __replace_impl!(impl)
@impl = impl
end
|
#inspect ⇒ Object
35
36
37
|
# File 'lib/mayu/resources/resource.rb', line 35
def inspect
"#<Resource::Wrapper @impl=#{@impl.inspect}>"
end
|