Sha256: fa3ef0e76af6eb075883501cecd37c8ab6cde11a8703ab905d7ea4328179e9fd

Contents?: true

Size: 247 Bytes

Versions: 1

Compression:

Stored size: 247 Bytes

Contents

class Formation::Fieldset < Formation::Element
  
  attr_reader :legend
  
  def initialize(name, options = {})
    @name = name
    @legend = options[:legend] || Formation::Util.titleize(name)
  end
  
  def fields
    @fields ||= []
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
formation-0.0.1 lib/formation/fieldset.rb