Class: String
Instance Method Summary collapse
Instance Method Details
#__basetype ⇒ Object
2 3 4 |
# File 'lib/mdbe/database_views/string.rb', line 2 def __basetype :string end |
#to_database_view(depth, ranges = {}, params = {}) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/mdbe/database_views/string.rb', line 6 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 |