Class: KeepYourHead::Database::Collection

Inherits:
BaseTopicFlashcardContainer show all
Defined in:
lib/Keepyourhead/database/Collection.rb

Instance Attribute Summary

Attributes inherited from BaseItemWithXml

#file, #node

Class Method Summary collapse

Instance Method Summary collapse

Methods included from BaseStatistic

#collectFlashcards, #count, #countActive, #countPassive, #distribution, #removeStatistics

Methods inherited from BaseItemWithXml

#database, my_define_method, #objectFromNode, #parent

Methods included from XmlAccessor

addAttribute, addElementCData, addElementText, #xmlAccessorAttributeRead, #xmlAccessorAttributeWrite, #xmlAccessorElementCDataRead, #xmlAccessorElementCDataWrite, #xmlAccessorElementListCreate, #xmlAccessorElementListInsertAfter, #xmlAccessorElementListInsertBefore, #xmlAccessorElementListInsertFirst, #xmlAccessorElementListInsertLast, #xmlAccessorElementListNext, #xmlAccessorElementListPrevious, #xmlAccessorElementListRead, #xmlAccessorElementListRemove, #xmlAccessorElementTextRead, #xmlAccessorElementTextWrite

Methods inherited from BaseItem

#children, #next, #parent, #previous, #remove

Constructor Details

#initialize(file, node) ⇒ Collection

Returns a new instance of Collection.



22
23
24
# File 'lib/Keepyourhead/database/Collection.rb', line 22

def initialize( file, node )
	super file, node
end

Class Method Details

.createNode(file) ⇒ Object



36
37
38
39
40
# File 'lib/Keepyourhead/database/Collection.rb', line 36

def self.createNode( file )
	obj = Collection.new file, REXML::Element.new( "collection" )
	obj.name = "neue Collection"
	obj.node
end