Module: Explicit::Type::Modifiers::ParamLocation

Extended by:
ParamLocation
Included in:
ParamLocation
Defined in:
lib/explicit/type/modifiers/param_location.rb

Instance Method Summary collapse

Instance Method Details

#apply(param_location, type) ⇒ Object



6
7
8
9
10
# File 'lib/explicit/type/modifiers/param_location.rb', line 6

def apply(param_location, type)
  Explicit::Type.build(type).tap do |type|
    type.param_location = param_location
  end
end