Top Level Namespace
Defined Under Namespace
Modules: Github
Instance Method Summary collapse
Instance Method Details
#putLess(array) ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/hubmaster.rb', line 15 def putLess(array) string = array.join("\n") if RUBY_PLATFORM =~ /win32/ puts string else windowHeight = HighLine::SystemExtensions.terminal_size[1] if array.count >= windowHeight IO.popen("less", "w") { |f| f.puts string} else puts string end end end |