Sha256: 04113b17588e6bccf34ba19ae49d1a945ea1d19deb03d7ceeac03afedf2c1627

Contents?: true

Size: 1.09 KB

Versions: 16

Compression:

Stored size: 1.09 KB

Contents

# frozen_string_literal: true

require_relative 'base_composer'
module EasyTalk
  module Types
    # The `Types` module provides a collection of composers for defining different types.
    #
    # This module contains composers for various types such as `AnyOf`, `AllOf`, etc.
    # Each composer is responsible for defining the behavior and properties of its respective type.
    class AnyOf < BaseComposer
      # Returns the name of the AnyOf composer.
      #
      # @return [Symbol] The name of the composer.
      def self.name
        :anyOf
      end

      # Returns the name of the AnyOf composer.
      #
      # @return [Symbol] The name of the composer.
      def name
        :anyOf
      end
    end
  end
end

module T
  # no-doc
  module AnyOf
    # Creates a new instance of `EasyTalk::Types::AnyOf` with the given arguments.
    #
    # @param args [Array] the list of arguments to be passed to the `EasyTalk::Types::AnyOf` constructor
    # @return [EasyTalk::Types::AnyOf] a new instance of `EasyTalk::Types::AnyOf`
    def self.[](*args)
      EasyTalk::Types::AnyOf.new(*args)
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
easy_talk-1.0.2 lib/easy_talk/types/any_of.rb
easy_talk-1.0.1 lib/easy_talk/types/any_of.rb
easy_talk-1.0.0 lib/easy_talk/types/any_of.rb
easy_talk-0.2.1 lib/easy_talk/types/any_of.rb
easy_talk-0.2.0 lib/easy_talk/types/any_of.rb
easy_talk-0.1.10 lib/easy_talk/types/any_of.rb
easy_talk-0.1.9 lib/easy_talk/types/any_of.rb
easy_talk-0.1.8 lib/easy_talk/types/any_of.rb
easy_talk-0.1.7 lib/easy_talk/types/any_of.rb
easy_talk-0.1.6 lib/easy_talk/types/any_of.rb
easy_talk-0.1.5 lib/easy_talk/types/any_of.rb
easy_talk-0.1.4 lib/easy_talk/types/any_of.rb
easy_talk-0.1.3 lib/easy_talk/types/any_of.rb
easy_talk-0.1.2 lib/easy_talk/types/any_of.rb
easy_talk-0.1.1 lib/easy_talk/types/any_of.rb
easy_talk-0.1.0 lib/easy_talk/types/any_of.rb