Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/annlat/AnnLat.rb

Instance Method Summary collapse

Instance Method Details

#my_jsonObject



170
171
172
173
174
175
176
177
# File 'lib/annlat/AnnLat.rb', line 170

def my_json
  if self[:objects] and self[:types]
    hash={}
    hash[:objects] = self[:objects].map {|row| row.map {|cell| cell.my_json }}
    hash[:types]=self[:types]
    hash
  end
end