Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/bunch/url_generator.rb
Overview
String additions
Instance Method Summary collapse
Instance Method Details
#text? ⇒ Boolean
8 9 10 11 |
# File 'lib/bunch/url_generator.rb', line 8 def text? res = `file "#{self}"` res =~ /text/ end |