Class: Houston::Extensions::FormBuilderDsl
- Inherits:
-
Object
- Object
- Houston::Extensions::FormBuilderDsl
- Defined in:
- lib/houston/boot/extensions.rb
Instance Attribute Summary collapse
-
#form ⇒ Object
readonly
Returns the value of attribute form.
Instance Method Summary collapse
- #html(&block) ⇒ Object
-
#initialize ⇒ FormBuilderDsl
constructor
A new instance of FormBuilderDsl.
- #name(value) ⇒ Object
Constructor Details
#initialize ⇒ FormBuilderDsl
Returns a new instance of FormBuilderDsl.
240 241 242 |
# File 'lib/houston/boot/extensions.rb', line 240 def initialize @form = ProjectFeatureForm.new end |
Instance Attribute Details
#form ⇒ Object (readonly)
Returns the value of attribute form.
238 239 240 |
# File 'lib/houston/boot/extensions.rb', line 238 def form @form end |
Instance Method Details
#html(&block) ⇒ Object
248 249 250 |
# File 'lib/houston/boot/extensions.rb', line 248 def html(&block) form.render_block = block end |
#name(value) ⇒ Object
244 245 246 |
# File 'lib/houston/boot/extensions.rb', line 244 def name(value) form.name = value end |