Class: PjlAppl
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
-
#host ⇒ Object
writeonly
Sets the attribute host.
-
#indent ⇒ Object
writeonly
Sets the attribute indent.
-
#length ⇒ Object
writeonly
Sets the attribute length.
-
#login ⇒ Object
writeonly
Sets the attribute login.
-
#width ⇒ Object
writeonly
Sets the attribute width.
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
#run ⇒ Object
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 |