module Bake::Type
Public Class Methods
Source
# File vendor/bundle/ruby/3.4.0/gems/bake-0.23.1/lib/bake/type/any.rb, line 71 def self.Any(*types) Any.new(types) end
A type constructor.
```ruby Any(Integer, String) ```
See [Any.initialize](Bake::Type::Any::initialize).
Source
# File vendor/bundle/ruby/3.4.0/gems/bake-0.23.1/lib/bake/type/array.rb, line 41 def self.Array(item_type = Any) Array.new(item_type) end
Source
# File vendor/bundle/ruby/3.4.0/gems/bake-0.23.1/lib/bake/type/hash.rb, line 38 def self.Hash(key_type, value_type) Hash.new(key_type, value_type) end
Source
# File vendor/bundle/ruby/3.4.0/gems/bake-0.23.1/lib/bake/type/tuple.rb, line 37 def self.Tuple(*item_types) Tuple.new(item_types) end
Source
# File vendor/bundle/ruby/3.4.0/gems/bake-0.23.1/lib/bake/type.rb, line 22 def self.parse(signature) eval(signature, binding) end