Sha256: a544cac59dcd3982e640086125e2fe7322650938545a509c89483c8f130c609f

Contents?: true

Size: 679 Bytes

Versions: 1

Compression:

Stored size: 679 Bytes

Contents

AbstractException = __resolve_smalltalk_global(:AbstractException)

class AbstractException
  primitive '__resume', 'resume'

  def __basetype
    :exception
  end

  def to_database_view(depth, ranges = {}, params = {})
    obj = super

    obj[:exception] = true
    obj[:inspection] = self.inspect

    # need to fetch these ivs explicitly since they're hidden by rubyPrivateSize
    obj[:gsResumable] = self.instance_variable_get("@_st_gsResumable") != false
    obj[:gsTrappable] = self.instance_variable_get("@_st_gsTrappable") != false
    obj[:gsNumber] = self.instance_variable_get("@_st_gsNumber")
    obj[:isDBEHalt] = self.class == DBEHalt

    return obj
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mdbe-0.1.0 lib/mdbe/database_views/abstract_exception.rb