Class: CutePrint::Values Private

Inherits:
Object show all
Extended by:
Forwardable
Includes:
Enumerable
Defined in:
lib/cute_print/values.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Constructor Details

#initialize(args, block) ⇒ Values

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.

Returns a new instance of Values.



11
12
13
14
15
16
17
# File 'lib/cute_print/values.rb', line 11

def initialize(args, block)
  if !args.empty? && block
    raise ArgumentError, "arguments and block are mutually exclusive"
  end
  @args = args
  @block = block
end