Skip to content

Instantly share code, notes, and snippets.

@alloy
Forked from anonymous/4.rb
Last active August 29, 2015 14:07
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 alloy/642e20a82b07a2796c4a to your computer and use it in GitHub Desktop.
Save alloy/642e20a82b07a2796c4a to your computer and use it in GitHub Desktop.
module ProMotion
class StaticPageView < PageView
def self.method_missing(method_name, obj_or_klass, *args)
options = args.last if args.last.is_a?(Hash)
options ||= {}
# then do rest
end
end
end
class StaticPageView < ProMotion::StaticPageView
my_page PM::Screen.new, name: :my_page, index: :left
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment