Method: Whiteprint::Attributes#add

Defined in:
lib/whiteprint/attributes.rb

#add(name:, type:, **options) ⇒ Object



112
113
114
# File 'lib/whiteprint/attributes.rb', line 112

def add(name:, type:, **options)
  @attributes[name.to_sym] = Attribute.new(name: name.to_sym, type: type.to_sym, model: @model, **options)
end