Class: String
Instance Method Summary collapse
- #dir? ⇒ Boolean
- #less ⇒ Object (also: #pager)
- #locate ⇒ Object
Methods included from Rush::HeadTail
Instance Method Details
#dir? ⇒ Boolean
9 10 11 |
# File 'lib/rush/string_ext.rb', line 9 def dir? ::Dir.exists? self end |
#less ⇒ Object Also known as: pager
4 5 6 |
# File 'lib/rush/string_ext.rb', line 4 def less IO.popen('less -R', 'w') { |f| f.puts self } end |
#locate ⇒ Object
13 14 15 |
# File 'lib/rush/string_ext.rb', line 13 def locate Rush::Dir.new(ENV['HOME']).locate self end |