Class: TypesHandler
- Inherits:
-
Object
- Object
- TypesHandler
- Defined in:
- lib/javonet-ruby-sdk/utils/types_handler.rb
Class Method Summary collapse
Class Method Details
.primitive_or_none?(item) ⇒ Boolean
2 3 4 5 6 7 8 9 |
# File 'lib/javonet-ruby-sdk/utils/types_handler.rb', line 2 def self.primitive_or_none?(item) item.is_a?(Integer) || item.is_a?(Float) || item.is_a?(TrueClass) || item.is_a?(FalseClass) || item.is_a?(String) || item.nil? end |