Class: Reviewable::EditableFields

Inherits:
Collection show all
Defined in:
lib/reviewable/editable_fields.rb

Defined Under Namespace

Classes: Field

Instance Method Summary collapse

Methods inherited from Collection

#blank?, #each, #has?, #initialize, #present?, #to_a

Constructor Details

This class inherits a constructor from Reviewable::Collection

Instance Method Details

#add(id, type) ⇒ Object



18
19
20
# File 'lib/reviewable/editable_fields.rb', line 18

def add(id, type)
  @content << Field.new(id, type)
end