Class: Xdt::Section
- Inherits:
-
Object
- Object
- Xdt::Section
- Extended by:
- SectionHandling
- Defined in:
- lib/xdt/xdt_sections.rb
Instance Method Summary collapse
- #field(*args) ⇒ Object
-
#initialize(type) {|_self| ... } ⇒ Section
constructor
A new instance of Section.
- #length ⇒ Object
- #to_s ⇒ Object
Methods included from SectionHandling
Constructor Details
#initialize(type) {|_self| ... } ⇒ Section
Returns a new instance of Section.
38 39 40 41 42 |
# File 'lib/xdt/xdt_sections.rb', line 38 def initialize(type) @type = type @fields = [] yield self if block_given? end |