Class: CutePrint::Configure
- Extended by:
- Forwardable
- Defined in:
- lib/cute_print/configure.rb
Instance Attribute Summary collapse
-
#location_format ⇒ String
The location format.
-
#out ⇒ #puts
The file to write to.
-
#term_width ⇒ Integer, Symbol
The terminal width, or :detect if it is being detected automatically.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(printer) {|Configure| ... } ⇒ Configure
constructor
private
Configure an instance of printer.
Constructor Details
#initialize(printer) {|Configure| ... } ⇒ Configure
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Configure an instance of printer.
13 14 15 16 |
# File 'lib/cute_print/configure.rb', line 13 def initialize(printer) @printer = printer yield self end |
Instance Attribute Details
#location_format ⇒ String
Returns The location format.
28 |
# File 'lib/cute_print/configure.rb', line 28 delegate_accessor :location_format |
#out ⇒ #puts
Returns The file to write to.
33 |
# File 'lib/cute_print/configure.rb', line 33 delegate_accessor :out |
#term_width ⇒ Integer, Symbol
Returns The terminal width, or :detect if it is being detected automatically.
39 |
# File 'lib/cute_print/configure.rb', line 39 delegate_accessor :term_width |
Class Method Details
.delegate_accessor(name) ⇒ Object
20 21 22 23 |
# File 'lib/cute_print/configure.rb', line 20 def self.delegate_accessor(name) def_delegator :@printer, name def_delegator :@printer, "#{name}=" end |