Class: Xdt::SectionType
- Inherits:
-
Object
- Object
- Xdt::SectionType
- Defined in:
- lib/xdt/xdt_sections.rb
Instance Method Summary collapse
-
#initialize(id, name, title, length, type = :string) ⇒ SectionType
constructor
A new instance of SectionType.
- #valid?(contents) ⇒ Boolean
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
10 11 12 |
# File 'lib/xdt/xdt_sections.rb', line 10 def valid?(contents) true end |