Sha256: 0c1c73520f712ace2fe2485d1969acbb8d85cecbef2ef1157f3ad9ce55536b1e
Contents?: true
Size: 788 Bytes
Versions: 1
Compression:
Stored size: 788 Bytes
Contents
module HungryForm module Elements # Find a class of the Elements module by name def self.find_class(name) constants.find { |c| Class === const_get(c) && c.to_s.underscore.to_sym == name } end def self.all_classes constants.select { |c| Class === const_get(c) } end end end require_relative 'elements/base/hashable' require_relative 'elements/base/element' require_relative 'elements/base/active_element' require_relative 'elements/base/options_element' require_relative 'elements/base/group' require_relative 'elements/page' require_relative 'elements/group' require_relative 'elements/html' require_relative 'elements/text_field' require_relative 'elements/select_field' require_relative 'elements/text_area' require_relative 'elements/radio_group'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hungryform-0.0.6 | lib/hungryform/elements.rb |