Created
July 12, 2012 03:20
-
-
Save willkurt/3095463 to your computer and use it in GitHub Desktop.
StringInquirer example
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
1.9.2-p290 :001 > exp = ActiveSupport::StringInquirer.new('example') | |
=> "example" | |
1.9.2-p290 :002 > exp.example? | |
=> true | |
1.9.2-p290 :003 > exp.what? | |
=> false | |
1.9.2-p290 :004 > |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment