Class: Houston::FormBuilderDsl

Inherits:
Object
  • Object
show all
Defined in:
lib/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFormBuilderDsl

Returns a new instance of FormBuilderDsl.



587
588
589
# File 'lib/configuration.rb', line 587

def initialize
  @form = ProjectFeatureForm.new
end

Instance Attribute Details

#formObject (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