Sha256: eb5f236f7d674ed1eea53fca435cace2ea5067d06a245b45a141c0e14bb95327

Contents?: true

Size: 368 Bytes

Versions: 3

Compression:

Stored size: 368 Bytes

Contents

# frozen string_literal: true

require 'dry-types'
require 'spy_alley_application/models/wild_card'

wild_card_enum = Types::String.enum('wild card')
wild_card = SpyAlleyApplication::Models::WildCard::new

SpyAlleyApplication::Types::WildCard =
  Types::Constructor(SpyAlleyApplication::Models::WildCard) do |value|
    wild_card_enum.call(value)
    wild_card
  end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spy_alley_application-0.3.2 lib/spy_alley_application/types/wild_card.rb
spy_alley_application-0.3.1 lib/spy_alley_application/types/wild_card.rb
spy_alley_application-0.3.0 lib/spy_alley_application/types/wild_card.rb