Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if v.is_a?(String)
- self[k] = v.smartcast
- elsif v.is_a?(Hash)
- puts "call Hash new from Hash"
- self[k] = Exg::Hash.new(v)
- elsif v.is_a?(Array)
- puts "call Array new from Hash"
- self[k] = Exg::Array.new(v)
- elsif v.is_a?(Cflip::Exg::Hash)
- self[k] = v
- elsif v.is_a?(Cflip::Exg::Array)
- self[k] = v
- else
- puts "what in Hash? #{v.class}"
- self[k] = v
- end
Advertisement
Add Comment
Please, Sign In to add comment