-
-
Save alloy/642e20a82b07a2796c4a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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