Sha256: 2cb7e037b02095941394903841d9930e2d62ef61ee63d87f85029951632eda46

Contents?: true

Size: 317 Bytes

Versions: 7

Compression:

Stored size: 317 Bytes

Contents

module ServiceContract
  AbstractType = Struct.new(:definition) do
    def name
      raise :not_implemented
    end

    def subtype
      nil
    end

    def fields
      []
    end

    def array?
      false
    end

    def complex?
      false
    end

    def valid_ruby_types
      [Object]
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
service_contract-0.3.0 lib/service_contract/abstract_type.rb
service_contract-0.2.1 lib/service_contract/abstract_type.rb
service_contract-0.2.0 lib/service_contract/abstract_type.rb
service_contract-0.1.1 lib/service_contract/abstract_type.rb
service_contract-0.1.0 lib/service_contract/abstract_type.rb
service_contract-0.0.10 lib/service_contract/abstract_type.rb
service_contract-0.0.8 lib/service_contract/abstract_type.rb