Module: Foyer::API::Helpers::ClassMethods

Defined in:
lib/foyer/api/helpers.rb

Instance Method Summary collapse

Instance Method Details

#set_token_finder(&blk) ⇒ Object

rubocop:disable Style/AccessorMethodName



22
23
24
25
# File 'lib/foyer/api/helpers.rb', line 22

def set_token_finder(&blk) # rubocop:disable Style/AccessorMethodName
  fail ':token_finder must accept 1 argument (token)' unless blk.arity == 1
  Foyer.token_finder = blk
end