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.



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

def initialize
  @form = ProjectFeatureForm.new
end

Instance Attribute Details

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