Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case klass
- when Bool then @value.as Bool
- when Int64 then @value.as Int64
- when Float64 then @value.as Float64
- when String then @value.as String
- when Hash(Type, Type) then @value.as Hash(Type, Type)
- when Array(Type) then @value.as Array(Type)
- when BaseNode then @value.as BaseNode
- else
- nil
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement