chore: init commit
in worker.../repo/GITFOLDER.zip is the .git folder.
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class BasePresenter
|
||||
attr_reader :object
|
||||
|
||||
def initialize(object)
|
||||
@object = object
|
||||
end
|
||||
|
||||
def method_missing(method_name, *, &)
|
||||
if object.respond_to?(method_name)
|
||||
object.public_send(method_name, *, &)
|
||||
else
|
||||
super
|
||||
end
|
||||
end
|
||||
|
||||
def respond_to_missing?(method_name, include_private = false)
|
||||
object.respond_to?(method_name) || super
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user