Sha256: 78feefd1d3858a9b06a4b628a5018ed827919da165af827df11f2cf8affa2dec

Contents?: true

Size: 684 Bytes

Versions: 3

Compression:

Stored size: 684 Bytes

Contents

class String
  def __basetype
    :string
  end

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

    obj[:string] = self[0, 200]
    if (obj[:string].size < self.size)
      obj[:string] += "..."
      obj[:stringComplete] = false
    else
      obj[:stringComplete] = true
    end

    if (params[:fullString])
      obj[:string] = self
      obj[:stringComplete] = true
    end

    return obj
  end

  primitive '__evaluate', 'evaluate'

  "String compile: 'evaluateInContext: anObject ^ self evaluateInContext: anObject symbolList: GsSession currentSession symbolList'".__evaluate

  primitive '__evaluate_smalltalk_in_context', 'evaluateInContext:'
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
mdbe-0.1.0 lib/mdbe/database_views/string.rb
maglev-database-explorer-0.0.5 lib/maglev-database-explorer/database_views/string.rb
maglev-database-explorer-0.0.4 lib/maglev-database-explorer/database_views/string.rb