Advertisement
Guest User

Untitled

a guest
Apr 8th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. case klass
  2. when Bool then @value.as Bool
  3. when Int64 then @value.as Int64
  4. when Float64 then @value.as Float64
  5. when String then @value.as String
  6. when Hash(Type, Type) then @value.as Hash(Type, Type)
  7. when Array(Type) then @value.as Array(Type)
  8. when BaseNode then @value.as BaseNode
  9. else
  10. nil
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement