Skip to content

Instantly share code, notes, and snippets.

@willkurt
Created July 12, 2012 03:20
Show Gist options
  • Save willkurt/3095463 to your computer and use it in GitHub Desktop.
Save willkurt/3095463 to your computer and use it in GitHub Desktop.
StringInquirer example
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