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