method

data2model

v1_9_2_180 - Show latest stable - Class: JSON::Editor
data2model(data, model = nil, parent = nil)
public

Convert the Ruby data structure data into tree model data for Gtk and returns the whole model. If the parameter model wasn’t given a new Gtk::TreeStore is created as the model. The parent parameter specifies the parent node (iter, Gtk:TreeIter instance) to which the data is appended, alternativeley the result of the yielded block is used as iter.