Module: Shaf::Formable::ClassMethods

Defined in:
lib/shaf/formable.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#create_formObject (readonly)

Returns the value of attribute create_form.



171
172
173
# File 'lib/shaf/formable.rb', line 171

def create_form
  @create_form
end

#edit_formObject (readonly)

Returns the value of attribute edit_form.



171
172
173
# File 'lib/shaf/formable.rb', line 171

def edit_form
  @edit_form
end

Instance Method Details

#form(&block) ⇒ Object



173
174
175
# File 'lib/shaf/formable.rb', line 173

def form(&block)
  @create_form, @edit_form = Builder.(block)
end