Skip to content

Instantly share code, notes, and snippets.

@breim
Created October 25, 2019 21:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save breim/cbb502471b0c71fd2147e35c72c8b696 to your computer and use it in GitHub Desktop.
Save breim/cbb502471b0c71fd2147e35c72c8b696 to your computer and use it in GitHub Desktop.
# frozen_string_literal: true
module ProviderHelper
def method_missing(method, *args, &block)
""
end
def xxx
case provider
when 'instagram'
extend InstagramProviderHelper
when 'youtube'
extend YoutubeProviderHelper
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment