Module: Formup::ClassMethods
- Defined in:
- lib/formup.rb
Overview
Class methods {{{
Instance Method Summary collapse
Instance Method Details
#source(key, options = {}) ⇒ Object
26 27 28 29 30 31 |
# File 'lib/formup.rb', line 26 def source(key, ={}) initialize_sources attribute_defs = create_attribute_defs(key, [:attributes], [:aliases]) @sources[key] = Formup::Source.new(key, attribute_defs) deploy_attributes(attribute_defs) end |
#sources ⇒ Object
21 22 23 24 |
# File 'lib/formup.rb', line 21 def sources initialize_sources @sources.dup end |