Class: CutePrint::Configure

Inherits:
Object show all
Extended by:
Forwardable
Defined in:
lib/cute_print/configure.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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.

Parameters:

Yields:



13
14
15
16
# File 'lib/cute_print/configure.rb', line 13

def initialize(printer)
  @printer = printer
  yield self
end

Instance Attribute Details

#location_formatString

Returns The location format.

Returns:

  • (String)

    The location format

See Also:



28
# File 'lib/cute_print/configure.rb', line 28

delegate_accessor :location_format

#out#puts

Returns The file to write to.

Returns:

  • (#puts)

    The file to write to

See Also:



33
# File 'lib/cute_print/configure.rb', line 33

delegate_accessor :out

#term_widthInteger, Symbol

Returns The terminal width, or :detect if it is being detected automatically.

Returns:

  • (Integer, Symbol)

    The terminal width, or :detect if it is being detected automatically.

See Also:



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