Sha256: 954fe3085d6120ac0d950929be7b45029e57da73e67adad2d75990f0285dd1ff
Contents?: true
Size: 740 Bytes
Versions: 3
Compression:
Stored size: 740 Bytes
Contents
# typed: true # frozen_string_literal: true module Frontman module ForwardCallsToApp def self.included(klass) klass.extend Frontman::ForwardCallsToApp::ClassMethods end def method_missing(method_id, *arguments, &block) Frontman::App.instance.public_send(method_id, *arguments, &block) end def respond_to_missing?(method_name, _ = false) Frontman::App.instance.respond_to?(method_name) end module ClassMethods def method_missing(method_id, *arguments, &block) Frontman::App.instance.public_send(method_id, *arguments, &block) end def respond_to_missing?(method_name, _ = false) Frontman::App.instance.respond_to?(method_name) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems