Files
project-work/worker-toolkit-stocks-in-the-future/repo/app/presenters/base_presenter.rb
Eric Bell 2854619bc9 chore: init commit
in worker.../repo/GITFOLDER.zip is the .git folder.
2026-08-11 14:44:09 -04:00

22 lines
405 B
Ruby

# 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