Class: Houston::FormBuilderDsl
- Inherits:
-
Object
- Object
- Houston::FormBuilderDsl
- Defined in:
- lib/configuration.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.
588 589 590 |
# File 'lib/configuration.rb', line 588 def initialize @form = ProjectFeatureForm.new end |
Instance Attribute Details
#form ⇒ Object (readonly)
Returns the value of attribute form.
586 587 588 |
# File 'lib/configuration.rb', line 586 def form @form end |
Instance Method Details
#html(&block) ⇒ Object
596 597 598 |
# File 'lib/configuration.rb', line 596 def html(&block) form.render_block = block end |
#name(value) ⇒ Object
592 593 594 |
# File 'lib/configuration.rb', line 592 def name(value) form.name = value end |