Sha256: 84e2b35afad7f1807f3f3765f5cac7af7c2c7130b0ebbf214bcc7daf0c81464e

Contents?: true

Size: 536 Bytes

Versions: 5

Compression:

Stored size: 536 Bytes

Contents

class Symbol
  def __basetype
    :symbol
  end

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

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

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

    return obj
  end

  def <=>(obj)
    self.to_s <=> obj.to_s
  end

  def render_inst_vars
    false
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
maglev-database-explorer-0.0.5 lib/maglev-database-explorer/database_views/symbol.rb
maglev-database-explorer-0.0.4 lib/maglev-database-explorer/database_views/symbol.rb
maglev-database-explorer-0.0.3 lib/maglev-database-explorer/database_views/symbol.rb
maglev-database-explorer-0.0.2 lib/maglev-database-explorer/database_views/symbol.rb
maglev-database-explorer-0.0.1 lib/maglev-database-explorer/database_views/symbol.rb