Module: Explicit::Type::Modifiers::Description

Extended by:
Description
Included in:
Description
Defined in:
lib/explicit/type/modifiers/description.rb

Instance Method Summary collapse

Instance Method Details

#apply(description, type) ⇒ Object



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

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