class PjlAppl

Constants

NAME
SUMMARY
VERSION

Attributes

host[W]
indent[W]
length[W]
login[W]
width[W]

Public Instance Methods

run() click to toggle source
# File lib/pjl/appl.rb, line 38
def run
  @host ||= gethostname
  @host, = @host.split "."
  @acct_file = @args.shift
  if @plain then
    while (l = readline) do
      print l
    end
  else
    frame
  end
rescue EOFError
end

Private Instance Methods

gethostname() click to toggle source
# File lib/pjl/appl.rb, line 56
def gethostname
  require "socket"
  Socket.gethostname
end