Class: PjlAppl

Inherits:
Application show all
Includes:
PJL
Defined in:
lib/pjl/appl.rb

Constant Summary collapse

NAME =
"pjlappl"
VERSION =
"0.0"
SUMMARY =
"This is just a template"
DESCRIPTION =
"Call this as an input filter from printcap."

Constants included from PJL

PJL::AUTHOR, PJL::COPYRIGHT, PJL::HOMEPAGE, PJL::LICENSE, PJL::TEAM

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from PJL

#enter, #iparm, #job, #lparm, #method_missing, #noop

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class PJL

Instance Attribute Details

#host=(value) ⇒ Object (writeonly)

Sets the attribute host



16
17
18
# File 'lib/pjl/appl.rb', line 16

def host=(value)
  @host = value
end

#indent=(value) ⇒ Object (writeonly)

Sets the attribute indent



16
17
18
# File 'lib/pjl/appl.rb', line 16

def indent=(value)
  @indent = value
end

#length=(value) ⇒ Object (writeonly)

Sets the attribute length



16
17
18
# File 'lib/pjl/appl.rb', line 16

def length=(value)
  @length = value
end

#login=(value) ⇒ Object (writeonly)

Sets the attribute login



16
17
18
# File 'lib/pjl/appl.rb', line 16

def login=(value)
  @login = value
end

#width=(value) ⇒ Object (writeonly)

Sets the attribute width



16
17
18
# File 'lib/pjl/appl.rb', line 16

def width=(value)
  @width = value
end

Instance Method Details

#runObject



40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/pjl/appl.rb', line 40

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