Method: GraphQL::Types::BigInt.parse_int

Defined in:
lib/graphql/types/big_int.rb

.parse_int(value) ⇒ Object



18
19
20
# File 'lib/graphql/types/big_int.rb', line 18

def self.parse_int(value)
  value.is_a?(Numeric) ? value : Integer(value, 10)
end