Methods
Attributes
[R] data
[R] error
Public Class methods
new(error=nil, *data, &ctrl)
# File lib/facets/more/nackclass.rb, line 63
  def initialize(error=nil, *data, &ctrl)
    if Class === error and error <= Exception
      @error = error.new(*data)
    elsif error.kind_of?( Exception )
      @error = error
    elsif error.kind_of?( String )
      @error = StandardError.new(error)
    elsif error == nil
      @error = StandardError.new
    else
      raise InvalidNackError
    end
    @data = data
    @ctrl = ctrl
  end
Public Instance methods
==(x)
# File lib/facets/more/nackclass.rb, line 93
  def ==(x)
    x.is_a?(NackClass)
  end
call(*args)
# File lib/facets/more/nackclass.rb, line 79
  def call(*args)
    @ctrl.call(*args)
  end
call_with_data()
# File lib/facets/more/nackclass.rb, line 83
  def call_with_data
    @ctrl.call(*@data)
  end
method_missing(meth, *args)
# File lib/facets/more/nackclass.rb, line 97
  def method_missing(meth, *args)
    raise_error
  end
raise_error()
# File lib/facets/more/nackclass.rb, line 87
  def raise_error
    raise @error
  end
to_s()
# File lib/facets/more/nackclass.rb, line 91
  def to_s; "n/a"; end