Class: Tendersync::Document::Group

Inherits:
TOCEntry
  • Object
show all
Defined in:
lib/tendersync/document.rb

Constant Summary collapse

Default =
Group.new('Other')

Instance Attribute Summary collapse

Attributes inherited from TOCEntry

#level, #link, #name, #parent

Instance Method Summary collapse

Methods inherited from TOCEntry

#add, #children, #write_entries

Constructor Details

#initialize(name, title_regex = //) ⇒ Group

Returns a new instance of Group.



46
47
48
49
# File 'lib/tendersync/document.rb', line 46

def initialize(name, title_regex=//)
  super(name, nil, nil)
  @title_regex = title_regex
end

Instance Attribute Details

#title_regexObject (readonly)

Returns the value of attribute title_regex.



45
46
47
# File 'lib/tendersync/document.rb', line 45

def title_regex
  @title_regex
end