Created
August 13, 2013 15:52
-
-
Save bootstraponline/6222614 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
# Example of Ruby page object pattern | |
module App | |
module Splash | |
class << self | |
def login | |
'login' | |
end | |
end | |
end | |
end | |
# App::Splash.login | |
module Kernel | |
def splash | |
App::Splash | |
end | |
end | |
# splash.login |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment