Method: Xdt::SectionType#initialize

Defined in:
lib/xdt/xdt_sections.rb

#initialize(id, name, title, length, type = :string) ⇒ SectionType

Returns a new instance of SectionType.



3
4
5
6
7
8
# File 'lib/xdt/xdt_sections.rb', line 3

def initialize(id, name, title, length, type = :string)
  @id = id.to_i
  @name = name
  @title = title
  @type = type
end