Module: Strict::Dsl::Coercible

Included in:
Attributes::Dsl, Methods::Dsl
Defined in:
lib/strict/dsl/coercible.rb

Instance Method Summary collapse

Instance Method Details

#ToArray(with: nil) ⇒ Object

rubocop:disable Naming/MethodName



8
# File 'lib/strict/dsl/coercible.rb', line 8

def ToArray(with: nil) = ::Strict::Coercers::Array.new(with)

#ToHash(with_keys: nil, with_values: nil) ⇒ Object



9
# File 'lib/strict/dsl/coercible.rb', line 9

def ToHash(with_keys: nil, with_values: nil) = ::Strict::Coercers::Hash.new(with_keys, with_values)