Module: Pry::VTermAliases::ObjectExt

Defined in:
lib/pry-vterm_aliases.rb

Overview

Better way?!?!

Instance Method Summary collapse

Instance Method Details

#capture_vterm_alias(als, extra = nil, out = StringIO.new) ⇒ Object



77
78
79
80
81
82
# File 'lib/pry-vterm_aliases.rb', line 77

def capture_vterm_alias(als, extra = nil, out = StringIO.new)
  Pry::VTermAliases.run_alias(als.gsub(/\A\./, ""), extra, out)
  if !out.is_a?(StringIO)
    then out else out.string
  end
end