Sha256: df336c8776c919f19f6dec7d96664b5cb6bdb796188979eb3a56b722c7c437bd
Contents?: true
Size: 212 Bytes
Versions: 3
Compression:
Stored size: 212 Bytes
Contents
module Earl class StringInquirer < ::String def method_missing( meth, *args, &block ) if meth.to_s[ -1 ] == '?' meth.to_s[ 0..-2 ] == to_s else super end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
earl-0.3.0 | lib/earl/string_inquirer.rb |
earl-0.2.0 | lib/earl/string_inquirer.rb |
earl-0.1.0 | lib/earl/string_inquirer.rb |