Sha256: 8575ab31836ba3d436ca73166c41b06e07b03b1771b7afa88ee26abb206de3f6

Contents?: true

Size: 1.03 KB

Versions: 3

Compression:

Stored size: 1.03 KB

Contents

# encoding: utf-8
# (c) 2011-2015 Martin Poljak (martin@poljak.cz)

##
# Main JSON-RPC Objects module.
#

module JsonRpcObjects

    ##
    # General module of JSON-RPC 1.1.
    #

    module V11
    
        ##
        # Module for special generic types as they are defined 
        # in JSON-RPC 1.1.
        #
        
        module GenericTypes

            ##
            # Class which means "any type of JSON data", so
            # "Boolean, Number, String, Array or Object".
            #
            # @abstract
            #
        
            class Any
            end
            
            ##
            # Class which means classical nil. Nil in code means
            # type isn't defined, so this class is necessary.
            #
            # @abstract
            #
            
            class Nil
            end
            
            ##
            # Class which means Boolean, so true or false.
            # @abstract
            #
            
            class Boolean
            end
            
        end
    end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
json-rpc-objects-0.4.6 lib/json-rpc-objects/v11/generic-types.rb
json-rpc-objects-0.4.5 lib/json-rpc-objects/v11/generic-types.rb
json-rpc-objects-0.4.4 lib/json-rpc-objects/v11/generic-types.rb