Method: Vis::DataCommon#get
- Defined in:
- lib/vis/data_common.rb
#get(*args) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/vis/data_common.rb', line 7 def get(*args) if `Opal.is_a(args.$last(), Opal.Hash)` args.push((args.pop)) end res = `self["native"].get.apply(self["native"], Opal.to_a(args))` if `res !== null && Opal.is_a(res, Opal.Array)` native_to_hash_array(res) else `res !== null ? Opal.Hash.$new(res) : #{nil}` end end |