Class: Xdt::SectionType

Inherits:
Object
  • Object
show all
Defined in:
lib/xdt/xdt_sections.rb

Instance Method Summary collapse

Constructor Details

#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

Instance Method Details

#valid?(contents) ⇒ Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/xdt/xdt_sections.rb', line 10

def valid?(contents)
  true
end