taskjuggler 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +1144 -2047
- data/README +1 -1
- data/Rakefile +6 -6
- data/data/css/tjmanual.css +20 -0
- data/data/css/tjreport.css +7 -6
- data/doc/AppConfig.html +136 -130
- data/doc/Arguments.html +46 -40
- data/doc/CHANGELOG.html +1162 -2057
- data/doc/COPYING.html +8 -2
- data/doc/Object.html +205 -199
- data/doc/README.html +9 -3
- data/doc/RuntimeConfig.html +75 -69
- data/doc/String.html +69 -63
- data/doc/TaskJuggler.html +350 -291
- data/doc/TaskJuggler/Account.html +26 -20
- data/doc/TaskJuggler/AccountAttribute.html +24 -18
- data/doc/TaskJuggler/AccountScenario.html +24 -18
- data/doc/TaskJuggler/Allocation.html +74 -68
- data/doc/TaskJuggler/AllocationAttribute.html +54 -48
- data/doc/TaskJuggler/AttributeBase.html +172 -93
- data/doc/TaskJuggler/AttributeDefinition.html +22 -16
- data/doc/TaskJuggler/AttributeOverwrite.html +586 -0
- data/doc/TaskJuggler/BatchProcessor.html +263 -257
- data/doc/TaskJuggler/Booking.html +44 -38
- data/doc/TaskJuggler/BookingListAttribute.html +25 -21
- data/doc/TaskJuggler/BooleanAttribute.html +24 -18
- data/doc/TaskJuggler/CSVFile.html +193 -187
- data/doc/TaskJuggler/CellSettingPattern.html +13 -7
- data/doc/TaskJuggler/CellSettingPatternList.html +25 -19
- data/doc/TaskJuggler/Charge.html +49 -43
- data/doc/TaskJuggler/ChargeListAttribute.html +21 -15
- data/doc/TaskJuggler/ChargeSet.html +94 -88
- data/doc/TaskJuggler/ChargeSetListAttribute.html +29 -25
- data/doc/TaskJuggler/CollisionDetector.html +142 -136
- data/doc/TaskJuggler/ColumnListAttribute.html +21 -17
- data/doc/TaskJuggler/ColumnTable.html +50 -44
- data/doc/TaskJuggler/Daemon.html +71 -50
- data/doc/TaskJuggler/DataCache.html +110 -58
- data/doc/TaskJuggler/DataCacheEntry.html +22 -16
- data/doc/TaskJuggler/DateAttribute.html +24 -18
- data/doc/TaskJuggler/DefinitionListAttribute.html +12 -6
- data/doc/TaskJuggler/DependencyListAttribute.html +29 -25
- data/doc/TaskJuggler/DurationAttribute.html +25 -19
- data/doc/TaskJuggler/FileList.html +25 -19
- data/doc/TaskJuggler/FileRecord.html +17 -11
- data/doc/TaskJuggler/FixnumAttribute.html +16 -10
- data/doc/TaskJuggler/FlagListAttribute.html +25 -21
- data/doc/TaskJuggler/FloatAttribute.html +20 -14
- data/doc/TaskJuggler/FormatListAttribute.html +17 -11
- data/doc/TaskJuggler/GanttChart.html +242 -236
- data/doc/TaskJuggler/GanttContainer.html +71 -67
- data/doc/TaskJuggler/GanttHeader.html +113 -107
- data/doc/TaskJuggler/GanttHeaderScaleItem.html +26 -20
- data/doc/TaskJuggler/GanttLine.html +217 -210
- data/doc/TaskJuggler/GanttLoadStack.html +89 -83
- data/doc/TaskJuggler/GanttMilestone.html +11 -6
- data/doc/TaskJuggler/GanttRouter.html +194 -186
- data/doc/TaskJuggler/GanttTaskBar.html +41 -34
- data/doc/TaskJuggler/HTMLDocument.html +52 -46
- data/doc/TaskJuggler/HTMLGraphics.html +58 -52
- data/doc/TaskJuggler/Interval.html +90 -84
- data/doc/TaskJuggler/IntervalList.html +777 -0
- data/doc/TaskJuggler/IntervalListAttribute.html +29 -25
- data/doc/TaskJuggler/JobInfo.html +36 -30
- data/doc/TaskJuggler/Journal.html +188 -177
- data/doc/TaskJuggler/JournalEntry.html +36 -30
- data/doc/TaskJuggler/JournalEntryList.html +88 -82
- data/doc/TaskJuggler/KeywordArray.html +12 -6
- data/doc/TaskJuggler/KeywordDocumentation.html +512 -503
- data/doc/TaskJuggler/Limits.html +111 -105
- data/doc/TaskJuggler/Limits/Limit.html +71 -65
- data/doc/TaskJuggler/LimitsAttribute.html +21 -15
- data/doc/TaskJuggler/ListAttributeBase.html +16 -10
- data/doc/TaskJuggler/Log.html +111 -105
- data/doc/TaskJuggler/LogFile.html +54 -48
- data/doc/TaskJuggler/LogicalAttribute.html +35 -29
- data/doc/TaskJuggler/LogicalExpression.html +32 -26
- data/doc/TaskJuggler/LogicalExpressionAttribute.html +16 -10
- data/doc/TaskJuggler/LogicalExpressionListAttribute.html +671 -0
- data/doc/TaskJuggler/LogicalFlag.html +24 -18
- data/doc/TaskJuggler/LogicalFunction.html +164 -158
- data/doc/TaskJuggler/LogicalOperation.html +138 -132
- data/doc/TaskJuggler/Macro.html +14 -8
- data/doc/TaskJuggler/MacroTable.html +42 -36
- data/doc/TaskJuggler/ManagerResponsibilities.html +19 -13
- data/doc/TaskJuggler/ManagerStatusRecord.html +23 -17
- data/doc/TaskJuggler/Message.html +56 -50
- data/doc/TaskJuggler/MessageHandler.html +73 -67
- data/doc/TaskJuggler/Navigator.html +92 -86
- data/doc/TaskJuggler/NavigatorElement.html +88 -82
- data/doc/TaskJuggler/NikuProject.html +15 -9
- data/doc/TaskJuggler/NikuReport.html +405 -370
- data/doc/TaskJuggler/NikuResource.html +13 -7
- data/doc/TaskJuggler/NodeListAttribute.html +13 -9
- data/doc/TaskJuggler/PlaceHolderCell.html +22 -16
- data/doc/TaskJuggler/ProcessIntercom.html +116 -110
- data/doc/TaskJuggler/ProcessIntercomIface.html +39 -33
- data/doc/TaskJuggler/Project.html +1064 -895
- data/doc/TaskJuggler/ProjectBroker.html +439 -366
- data/doc/TaskJuggler/ProjectBrokerIface.html +63 -53
- data/doc/TaskJuggler/ProjectFileParser.html +329 -319
- data/doc/TaskJuggler/ProjectFileScanner.html +351 -345
- data/doc/TaskJuggler/ProjectRecord.html +66 -60
- data/doc/TaskJuggler/ProjectServer.html +287 -280
- data/doc/TaskJuggler/ProjectServerIface.html +43 -37
- data/doc/TaskJuggler/PropertyAttribute.html +16 -10
- data/doc/TaskJuggler/PropertyList.html +205 -199
- data/doc/TaskJuggler/PropertySet.html +264 -296
- data/doc/TaskJuggler/PropertyTreeNode.html +455 -505
- data/doc/TaskJuggler/Query.html +309 -524
- data/doc/TaskJuggler/RTFHandlers.html +17 -11
- data/doc/TaskJuggler/RTFNavigator.html +33 -27
- data/doc/TaskJuggler/RTFQuery.html +135 -129
- data/doc/TaskJuggler/RTFReport.html +63 -57
- data/doc/TaskJuggler/RTFReportLink.html +55 -49
- data/doc/TaskJuggler/RTFWithQuerySupport.html +17 -11
- data/doc/TaskJuggler/RealFormat.html +64 -58
- data/doc/TaskJuggler/RealFormatAttribute.html +12 -6
- data/doc/TaskJuggler/ReferenceAttribute.html +35 -29
- data/doc/TaskJuggler/Report.html +294 -249
- data/doc/TaskJuggler/ReportBase.html +229 -223
- data/doc/TaskJuggler/ReportContext.html +52 -46
- data/doc/TaskJuggler/ReportServer.html +143 -137
- data/doc/TaskJuggler/ReportServerIface.html +51 -43
- data/doc/TaskJuggler/ReportServerRecord.html +36 -30
- data/doc/TaskJuggler/ReportServlet.html +167 -140
- data/doc/TaskJuggler/ReportTable.html +137 -131
- data/doc/TaskJuggler/ReportTableCell.html +332 -292
- data/doc/TaskJuggler/ReportTableColumn.html +46 -40
- data/doc/TaskJuggler/ReportTableLegend.html +43 -38
- data/doc/TaskJuggler/ReportTableLine.html +66 -60
- data/doc/TaskJuggler/Resource.html +166 -160
- data/doc/TaskJuggler/ResourceListAttribute.html +54 -32
- data/doc/TaskJuggler/ResourceListRE.html +47 -41
- data/doc/TaskJuggler/ResourceScenario.html +671 -644
- data/doc/TaskJuggler/RichText.html +51 -45
- data/doc/TaskJuggler/RichTextAttribute.html +28 -22
- data/doc/TaskJuggler/RichTextDocument.html +96 -90
- data/doc/TaskJuggler/RichTextElement.html +503 -497
- data/doc/TaskJuggler/RichTextFunctionExample.html +41 -35
- data/doc/TaskJuggler/RichTextFunctionHandler.html +19 -13
- data/doc/TaskJuggler/RichTextImage.html +14 -8
- data/doc/TaskJuggler/RichTextIntermediate.html +86 -80
- data/doc/TaskJuggler/RichTextParser.html +59 -53
- data/doc/TaskJuggler/RichTextScanner.html +184 -178
- data/doc/TaskJuggler/RichTextSnip.html +69 -63
- data/doc/TaskJuggler/RichTextSyntaxRules.html +416 -410
- data/doc/TaskJuggler/Scenario.html +13 -7
- data/doc/TaskJuggler/ScenarioData.html +40 -34
- data/doc/TaskJuggler/ScenarioListAttribute.html +21 -15
- data/doc/TaskJuggler/Scoreboard.html +129 -107
- data/doc/TaskJuggler/SheetHandlerBase.html +245 -239
- data/doc/TaskJuggler/SheetReceiver.html +333 -327
- data/doc/TaskJuggler/SheetSender.html +227 -221
- data/doc/TaskJuggler/Shift.html +26 -20
- data/doc/TaskJuggler/ShiftAssignment.html +45 -39
- data/doc/TaskJuggler/ShiftAssignments.html +178 -172
- data/doc/TaskJuggler/ShiftAssignmentsAttribute.html +21 -15
- data/doc/TaskJuggler/ShiftScenario.html +29 -23
- data/doc/TaskJuggler/SimpleQueryExpander.html +36 -30
- data/doc/TaskJuggler/SortListAttribute.html +17 -13
- data/doc/TaskJuggler/SourceFileInfo.html +19 -13
- data/doc/TaskJuggler/StatusSheetReceiver.html +31 -25
- data/doc/TaskJuggler/StatusSheetReport.html +166 -159
- data/doc/TaskJuggler/StatusSheetSender.html +80 -74
- data/doc/TaskJuggler/StringAttribute.html +20 -14
- data/doc/TaskJuggler/SymbolAttribute.html +16 -10
- data/doc/TaskJuggler/SyntaxReference.html +231 -225
- data/doc/TaskJuggler/TOCEntry.html +46 -40
- data/doc/TaskJuggler/TSResourceRecord.html +15 -9
- data/doc/TaskJuggler/TSTaskRecord.html +16 -10
- data/doc/TaskJuggler/TableColumnDefinition.html +84 -39
- data/doc/TaskJuggler/TableOfContents.html +28 -22
- data/doc/TaskJuggler/TableReport.html +906 -866
- data/doc/TaskJuggler/Task.html +99 -93
- data/doc/TaskJuggler/TaskDependency.html +24 -18
- data/doc/TaskJuggler/TaskListAttribute.html +29 -25
- data/doc/TaskJuggler/TaskListRE.html +46 -39
- data/doc/TaskJuggler/TaskScenario.html +2218 -1965
- data/doc/TaskJuggler/TextFormatter.html +154 -148
- data/doc/TaskJuggler/TextParser.html +362 -348
- data/doc/TaskJuggler/TextParser/Pattern.html +313 -307
- data/doc/TaskJuggler/TextParser/Rule.html +147 -141
- data/doc/TaskJuggler/TextParser/StackElement.html +58 -52
- data/doc/TaskJuggler/TextParser/State.html +88 -82
- data/doc/TaskJuggler/TextParser/StateTransition.html +42 -36
- data/doc/TaskJuggler/TextParser/TextParserResultArray.html +20 -14
- data/doc/TaskJuggler/TextParser/TokenDoc.html +19 -13
- data/doc/TaskJuggler/TextReport.html +80 -74
- data/doc/TaskJuggler/TextScanner.html +284 -272
- data/doc/TaskJuggler/TextScanner/BufferStreamHandle.html +14 -8
- data/doc/TaskJuggler/TextScanner/FileStreamHandle.html +21 -15
- data/doc/TaskJuggler/TextScanner/MacroStackEntry.html +15 -9
- data/doc/TaskJuggler/TextScanner/StreamHandle.html +102 -96
- data/doc/TaskJuggler/TimeSheet.html +123 -117
- data/doc/TaskJuggler/TimeSheetReceiver.html +28 -22
- data/doc/TaskJuggler/TimeSheetRecord.html +212 -206
- data/doc/TaskJuggler/TimeSheetReport.html +206 -199
- data/doc/TaskJuggler/TimeSheetSender.html +27 -21
- data/doc/TaskJuggler/TimeSheetSummary.html +140 -134
- data/doc/TaskJuggler/TimeSheets.html +20 -14
- data/doc/TaskJuggler/Tj3AppBase.html +100 -94
- data/doc/TaskJuggler/Tj3Client.html +407 -483
- data/doc/TaskJuggler/Tj3Daemon.html +116 -107
- data/doc/TaskJuggler/Tj3SheetAppBase.html +45 -39
- data/doc/TaskJuggler/Tj3SsReceiver.html +31 -25
- data/doc/TaskJuggler/Tj3SsSender.html +64 -58
- data/doc/TaskJuggler/Tj3TsReceiver.html +31 -25
- data/doc/TaskJuggler/Tj3TsSender.html +51 -45
- data/doc/TaskJuggler/Tj3TsSummary.html +59 -53
- data/doc/TaskJuggler/TjException.html +13 -7
- data/doc/TaskJuggler/TjTime.html +444 -438
- data/doc/TaskJuggler/TjpExample.html +84 -78
- data/doc/TaskJuggler/TjpExportRE.html +356 -349
- data/doc/TaskJuggler/TjpSyntaxRules.html +4279 -4151
- data/doc/TaskJuggler/URLParameter.html +16 -10
- data/doc/TaskJuggler/UserManual.html +185 -179
- data/doc/TaskJuggler/VimSyntax.html +144 -138
- data/doc/TaskJuggler/WebServer.html +46 -39
- data/doc/TaskJuggler/WelcomePage.html +769 -0
- data/doc/TaskJuggler/WorkingHours.html +185 -179
- data/doc/TaskJuggler/WorkingHoursAttribute.html +42 -36
- data/doc/TaskJuggler/XMLBlob.html +21 -15
- data/doc/TaskJuggler/XMLComment.html +17 -11
- data/doc/TaskJuggler/XMLDocument.html +33 -27
- data/doc/TaskJuggler/XMLElement.html +97 -91
- data/doc/TaskJuggler/XMLNamedText.html +13 -7
- data/doc/TaskJuggler/XMLText.html +32 -26
- data/doc/index.html +601 -563
- data/doc/lib/AccountScenario_rb.html +5 -3
- data/doc/lib/Account_rb.html +5 -3
- data/doc/lib/Allocation_rb.html +5 -3
- data/doc/lib/AppConfig_rb.html +5 -3
- data/doc/lib/AttributeBase_rb.html +5 -3
- data/doc/lib/AttributeDefinition_rb.html +5 -3
- data/doc/lib/Attributes_rb.html +5 -3
- data/doc/lib/BatchProcessor_rb.html +5 -3
- data/doc/lib/Booking_rb.html +5 -3
- data/doc/lib/ChargeSet_rb.html +5 -3
- data/doc/lib/Charge_rb.html +5 -3
- data/doc/lib/DataCache_rb.html +5 -3
- data/doc/lib/FileList_rb.html +5 -3
- data/doc/lib/HTMLDocument_rb.html +5 -3
- data/doc/lib/IntervalList_rb.html +69 -0
- data/doc/lib/Interval_rb.html +5 -3
- data/doc/lib/Journal_rb.html +5 -3
- data/doc/lib/KeywordArray_rb.html +5 -3
- data/doc/lib/KeywordDocumentation_rb.html +5 -3
- data/doc/lib/Limits_rb.html +5 -3
- data/doc/lib/LogFile_rb.html +5 -3
- data/doc/lib/Log_rb.html +5 -3
- data/doc/lib/LogicalExpression_rb.html +5 -3
- data/doc/lib/LogicalFunction_rb.html +5 -3
- data/doc/lib/LogicalOperation_rb.html +5 -3
- data/doc/lib/MacroTable_rb.html +5 -3
- data/doc/lib/MessageHandler_rb.html +5 -3
- data/doc/lib/ProjectFileParser_rb.html +5 -3
- data/doc/lib/ProjectFileScanner_rb.html +5 -3
- data/doc/lib/Project_rb.html +5 -3
- data/doc/lib/PropertyList_rb.html +5 -3
- data/doc/lib/PropertySet_rb.html +5 -3
- data/doc/lib/PropertyTreeNode_rb.html +5 -3
- data/doc/lib/Query_rb.html +5 -3
- data/doc/lib/RTFHandlers_rb.html +5 -3
- data/doc/lib/RTFNavigator_rb.html +5 -3
- data/doc/lib/RTFQuery_rb.html +5 -3
- data/doc/lib/RTFReportLink_rb.html +5 -3
- data/doc/lib/RTFReport_rb.html +5 -3
- data/doc/lib/RTFWithQuerySupport_rb.html +5 -3
- data/doc/lib/RealFormat_rb.html +5 -3
- data/doc/lib/ResourceScenario_rb.html +5 -3
- data/doc/lib/Resource_rb.html +5 -3
- data/doc/lib/RichTextDocument_rb.html +5 -3
- data/doc/lib/RichTextElement_rb.html +5 -3
- data/doc/lib/RichTextFunctionExample_rb.html +5 -3
- data/doc/lib/RichTextFunctionHandler_rb.html +5 -3
- data/doc/lib/RichTextParser_rb.html +5 -3
- data/doc/lib/RichTextScanner_rb.html +5 -3
- data/doc/lib/RichTextSnip_rb.html +5 -3
- data/doc/lib/RichTextSyntaxRules_rb.html +5 -3
- data/doc/lib/RichText_rb.html +5 -3
- data/doc/lib/RuntimeConfig_rb.html +5 -3
- data/doc/lib/ScenarioData_rb.html +5 -3
- data/doc/lib/Scenario_rb.html +5 -3
- data/doc/lib/Scoreboard_rb.html +7 -3
- data/doc/lib/SheetHandlerBase_rb.html +5 -3
- data/doc/lib/SheetReceiver_rb.html +5 -3
- data/doc/lib/SheetSender_rb.html +5 -3
- data/doc/lib/ShiftAssignments_rb.html +5 -3
- data/doc/lib/ShiftScenario_rb.html +5 -3
- data/doc/lib/Shift_rb.html +5 -3
- data/doc/lib/SimpleQueryExpander_rb.html +5 -3
- data/doc/lib/SourceFileInfo_rb.html +5 -3
- data/doc/lib/StatusSheetReceiver_rb.html +5 -3
- data/doc/lib/StatusSheetSender_rb.html +5 -3
- data/doc/lib/SyntaxReference_rb.html +5 -3
- data/doc/lib/TOCEntry_rb.html +5 -3
- data/doc/lib/TableColumnDefinition_rb.html +5 -3
- data/doc/lib/TableOfContents_rb.html +5 -3
- data/doc/lib/TaskDependency_rb.html +5 -3
- data/doc/lib/TaskJuggler_rb.html +5 -3
- data/doc/lib/TaskScenario_rb.html +5 -3
- data/doc/lib/Task_rb.html +5 -3
- data/doc/lib/TextFormatter_rb.html +6 -4
- data/doc/lib/TextParser/Pattern_rb.html +5 -3
- data/doc/lib/TextParser/Rule_rb.html +5 -3
- data/doc/lib/TextParser/StackElement_rb.html +5 -3
- data/doc/lib/TextParser/State_rb.html +6 -4
- data/doc/lib/TextParser/TokenDoc_rb.html +5 -3
- data/doc/lib/TextParser_rb.html +5 -3
- data/doc/lib/TextScanner_rb.html +5 -3
- data/doc/lib/TimeSheetReceiver_rb.html +5 -3
- data/doc/lib/TimeSheetSender_rb.html +5 -3
- data/doc/lib/TimeSheetSummary_rb.html +6 -4
- data/doc/lib/TimeSheets_rb.html +5 -3
- data/doc/lib/Tj3AppBase_rb.html +5 -3
- data/doc/lib/Tj3Config_rb.html +5 -3
- data/doc/lib/Tj3SheetAppBase_rb.html +5 -3
- data/doc/lib/TjException_rb.html +5 -3
- data/doc/lib/TjTime_rb.html +5 -3
- data/doc/lib/TjpExample_rb.html +5 -3
- data/doc/lib/TjpSyntaxRules_rb.html +5 -3
- data/doc/lib/URLParameter_rb.html +5 -3
- data/doc/lib/UTF8String_rb.html +5 -3
- data/doc/lib/UserManual_rb.html +5 -3
- data/doc/lib/VimSyntax_rb.html +6 -4
- data/doc/lib/WorkingHours_rb.html +5 -3
- data/doc/lib/XMLDocument_rb.html +5 -3
- data/doc/lib/XMLElement_rb.html +5 -3
- data/doc/lib/daemon/Daemon_rb.html +5 -3
- data/doc/lib/daemon/ProcessIntercom_rb.html +7 -3
- data/doc/lib/daemon/ProjectBroker_rb.html +5 -3
- data/doc/lib/daemon/ProjectServer_rb.html +5 -3
- data/doc/lib/daemon/ReportServer_rb.html +5 -3
- data/doc/lib/daemon/ReportServlet_rb.html +69 -0
- data/doc/lib/daemon/WebServer_rb.html +9 -3
- data/doc/lib/daemon/WelcomePage_rb.html +71 -0
- data/doc/lib/deep_copy_rb.html +5 -3
- data/doc/lib/reports/CSVFile_rb.html +5 -3
- data/doc/lib/reports/CollisionDetector_rb.html +5 -3
- data/doc/lib/reports/ColumnTable_rb.html +5 -3
- data/doc/lib/reports/GanttChart_rb.html +5 -3
- data/doc/lib/reports/GanttContainer_rb.html +5 -3
- data/doc/lib/reports/GanttHeaderScaleItem_rb.html +5 -3
- data/doc/lib/reports/GanttHeader_rb.html +5 -3
- data/doc/lib/reports/GanttLine_rb.html +5 -3
- data/doc/lib/reports/GanttLoadStack_rb.html +5 -3
- data/doc/lib/reports/GanttMilestone_rb.html +5 -3
- data/doc/lib/reports/GanttRouter_rb.html +5 -3
- data/doc/lib/reports/GanttTaskBar_rb.html +5 -3
- data/doc/lib/reports/HTMLGraphics_rb.html +5 -3
- data/doc/lib/reports/Navigator_rb.html +5 -3
- data/doc/lib/reports/NikuReport_rb.html +5 -3
- data/doc/lib/reports/ReportBase_rb.html +5 -3
- data/doc/lib/reports/ReportContext_rb.html +5 -3
- data/doc/lib/reports/ReportTableCell_rb.html +5 -3
- data/doc/lib/reports/ReportTableColumn_rb.html +5 -3
- data/doc/lib/reports/ReportTableLegend_rb.html +5 -3
- data/doc/lib/reports/ReportTableLine_rb.html +5 -3
- data/doc/lib/reports/ReportTable_rb.html +5 -3
- data/doc/lib/reports/Report_rb.html +5 -3
- data/doc/lib/reports/ResourceListRE_rb.html +5 -3
- data/doc/lib/reports/StatusSheetReport_rb.html +5 -3
- data/doc/lib/reports/TableReport_rb.html +5 -3
- data/doc/lib/reports/TaskListRE_rb.html +5 -3
- data/doc/lib/reports/TextReport_rb.html +5 -3
- data/doc/lib/reports/TimeSheetReport_rb.html +5 -3
- data/doc/lib/reports/TjpExportRE_rb.html +5 -3
- data/doc/lib/{taskjuggler3_rb.html → tj3_rb.html} +7 -5
- data/doc/lib/tj3client_rb.html +5 -3
- data/doc/lib/tj3d_rb.html +6 -4
- data/doc/lib/tj3man_rb.html +5 -3
- data/doc/lib/tj3ss_receiver_rb.html +5 -3
- data/doc/lib/tj3ss_sender_rb.html +5 -3
- data/doc/lib/tj3ts_receiver_rb.html +5 -3
- data/doc/lib/tj3ts_sender_rb.html +5 -3
- data/doc/lib/tj3ts_summary_rb.html +5 -3
- data/examples/tutorial.tjp +13 -5
- data/gem_spec.rb +3 -0
- data/lib/Account.rb +2 -1
- data/lib/AccountScenario.rb +2 -1
- data/lib/Allocation.rb +2 -1
- data/lib/AppConfig.rb +2 -1
- data/lib/AttributeBase.rb +19 -5
- data/lib/AttributeDefinition.rb +2 -1
- data/lib/Attributes.rb +49 -38
- data/lib/BatchProcessor.rb +2 -1
- data/lib/Booking.rb +2 -1
- data/lib/Charge.rb +2 -1
- data/lib/ChargeSet.rb +2 -1
- data/lib/DataCache.rb +15 -1
- data/lib/FileList.rb +2 -1
- data/lib/HTMLDocument.rb +2 -1
- data/lib/Interval.rb +2 -1
- data/lib/IntervalList.rb +100 -0
- data/lib/Journal.rb +8 -2
- data/lib/KeywordArray.rb +2 -1
- data/lib/KeywordDocumentation.rb +10 -6
- data/lib/Limits.rb +2 -1
- data/lib/Log.rb +3 -2
- data/lib/LogFile.rb +2 -1
- data/lib/LogicalExpression.rb +2 -1
- data/lib/LogicalFunction.rb +2 -1
- data/lib/LogicalOperation.rb +2 -1
- data/lib/MacroTable.rb +2 -1
- data/lib/MessageHandler.rb +2 -1
- data/lib/Project.rb +92 -25
- data/lib/ProjectFileParser.rb +7 -2
- data/lib/ProjectFileScanner.rb +2 -1
- data/lib/PropertyList.rb +2 -1
- data/lib/PropertySet.rb +2 -6
- data/lib/PropertyTreeNode.rb +22 -44
- data/lib/Query.rb +32 -13
- data/lib/RTFHandlers.rb +2 -1
- data/lib/RTFNavigator.rb +2 -1
- data/lib/RTFQuery.rb +3 -2
- data/lib/RTFReport.rb +2 -1
- data/lib/RTFReportLink.rb +2 -1
- data/lib/RTFWithQuerySupport.rb +2 -1
- data/lib/RealFormat.rb +2 -1
- data/lib/Resource.rb +2 -1
- data/lib/ResourceScenario.rb +35 -14
- data/lib/RichText.rb +2 -1
- data/lib/RichTextDocument.rb +2 -1
- data/lib/RichTextElement.rb +2 -1
- data/lib/RichTextFunctionExample.rb +2 -1
- data/lib/RichTextFunctionHandler.rb +2 -1
- data/lib/RichTextParser.rb +2 -1
- data/lib/RichTextScanner.rb +2 -1
- data/lib/RichTextSnip.rb +2 -1
- data/lib/RichTextSyntaxRules.rb +2 -1
- data/lib/RuntimeConfig.rb +2 -1
- data/lib/Scenario.rb +2 -1
- data/lib/ScenarioData.rb +2 -1
- data/lib/Scoreboard.rb +27 -8
- data/lib/SheetHandlerBase.rb +2 -1
- data/lib/SheetReceiver.rb +2 -1
- data/lib/SheetSender.rb +2 -1
- data/lib/Shift.rb +2 -1
- data/lib/ShiftAssignments.rb +2 -1
- data/lib/ShiftScenario.rb +2 -1
- data/lib/SimpleQueryExpander.rb +2 -1
- data/lib/SourceFileInfo.rb +2 -1
- data/lib/StatusSheetReceiver.rb +2 -1
- data/lib/StatusSheetSender.rb +2 -1
- data/lib/SyntaxReference.rb +2 -1
- data/lib/TOCEntry.rb +2 -1
- data/lib/TableColumnDefinition.rb +9 -2
- data/lib/TableOfContents.rb +2 -1
- data/lib/Task.rb +2 -1
- data/lib/TaskDependency.rb +2 -1
- data/lib/TaskJuggler.rb +8 -6
- data/lib/TaskScenario.rb +337 -153
- data/lib/TextFormatter.rb +3 -2
- data/lib/TextParser.rb +7 -2
- data/lib/TextParser/Pattern.rb +2 -1
- data/lib/TextParser/Rule.rb +2 -1
- data/lib/TextParser/StackElement.rb +2 -1
- data/lib/TextParser/State.rb +3 -2
- data/lib/TextParser/TokenDoc.rb +2 -1
- data/lib/TextScanner.rb +12 -5
- data/lib/TimeSheetReceiver.rb +2 -1
- data/lib/TimeSheetSender.rb +2 -1
- data/lib/TimeSheetSummary.rb +3 -2
- data/lib/TimeSheets.rb +2 -1
- data/lib/Tj3AppBase.rb +6 -5
- data/lib/Tj3Config.rb +5 -4
- data/lib/Tj3SheetAppBase.rb +2 -1
- data/lib/TjException.rb +2 -1
- data/lib/TjTime.rb +2 -1
- data/lib/TjpExample.rb +2 -1
- data/lib/TjpSyntaxRules.rb +264 -65
- data/lib/URLParameter.rb +2 -1
- data/lib/UTF8String.rb +2 -1
- data/lib/UserManual.rb +2 -1
- data/lib/VimSyntax.rb +3 -2
- data/lib/WorkingHours.rb +2 -1
- data/lib/XMLDocument.rb +2 -1
- data/lib/XMLElement.rb +2 -1
- data/lib/daemon/Daemon.rb +3 -1
- data/lib/daemon/ProcessIntercom.rb +3 -1
- data/lib/daemon/ProjectBroker.rb +84 -32
- data/lib/daemon/ProjectServer.rb +5 -3
- data/lib/daemon/ReportServer.rb +8 -5
- data/lib/daemon/ReportServlet.rb +166 -0
- data/lib/daemon/WebServer.rb +6 -150
- data/lib/daemon/WelcomePage.rb +80 -0
- data/lib/deep_copy.rb +2 -1
- data/lib/reports/CSVFile.rb +2 -1
- data/lib/reports/CollisionDetector.rb +2 -1
- data/lib/reports/ColumnTable.rb +2 -1
- data/lib/reports/GanttChart.rb +2 -1
- data/lib/reports/GanttContainer.rb +3 -4
- data/lib/reports/GanttHeader.rb +2 -1
- data/lib/reports/GanttHeaderScaleItem.rb +2 -1
- data/lib/reports/GanttLine.rb +12 -10
- data/lib/reports/GanttLoadStack.rb +2 -1
- data/lib/reports/GanttMilestone.rb +3 -3
- data/lib/reports/GanttRouter.rb +4 -1
- data/lib/reports/GanttTaskBar.rb +9 -7
- data/lib/reports/HTMLGraphics.rb +2 -1
- data/lib/reports/Navigator.rb +2 -1
- data/lib/reports/NikuReport.rb +79 -49
- data/lib/reports/Report.rb +42 -10
- data/lib/reports/ReportBase.rb +2 -1
- data/lib/reports/ReportContext.rb +2 -1
- data/lib/reports/ReportTable.rb +2 -1
- data/lib/reports/ReportTableCell.rb +63 -28
- data/lib/reports/ReportTableColumn.rb +2 -1
- data/lib/reports/ReportTableLegend.rb +5 -5
- data/lib/reports/ReportTableLine.rb +2 -1
- data/lib/reports/ResourceListRE.rb +2 -1
- data/lib/reports/StatusSheetReport.rb +4 -2
- data/lib/reports/TableReport.rb +42 -38
- data/lib/reports/TaskListRE.rb +4 -2
- data/lib/reports/TextReport.rb +2 -1
- data/lib/reports/TimeSheetReport.rb +4 -2
- data/lib/reports/TjpExportRE.rb +4 -2
- data/lib/{taskjuggler3.rb → tj3.rb} +6 -5
- data/lib/tj3client.rb +19 -36
- data/lib/tj3d.rb +6 -2
- data/lib/tj3man.rb +4 -3
- data/lib/tj3ss_receiver.rb +2 -1
- data/lib/tj3ss_sender.rb +2 -1
- data/lib/tj3ts_receiver.rb +2 -1
- data/lib/tj3ts_sender.rb +2 -1
- data/lib/tj3ts_summary.rb +2 -1
- data/manual/Day_To_Day_Juggling +36 -0
- data/manual/How_To_Contribute +9 -4
- data/manual/Installation +10 -3
- data/manual/TaskJuggler_Internals +0 -2
- data/manual/Tutorial +25 -3
- data/prj_cfg.rb +4 -2
- data/spec/IntervalList_spec.rb +138 -0
- data/spec/ProjectBroker_spec.rb +133 -0
- data/tasks/changelog.rake +41 -24
- data/tasks/csts.rake +1 -0
- data/tasks/gem.rake +1 -0
- data/tasks/rcov.rake +1 -1
- data/tasks/spec.rake +7 -0
- data/tasks/test.rake +1 -0
- data/test/MessageChecker.rb +2 -1
- data/test/TestSuite/CSV-Reports/niku.tjp +70 -0
- data/test/TestSuite/CSV-Reports/{celltext-Reference.csv → refs/celltext.csv} +0 -0
- data/test/TestSuite/CSV-Reports/refs/niku.csv +5 -0
- data/test/TestSuite/CSV-Reports/{resourcereport-Reference.csv → refs/resourcereport.csv} +0 -0
- data/test/TestSuite/CSV-Reports/{resourcereport_with_tasks-Reference.csv → refs/resourcereport_with_tasks.csv} +0 -0
- data/test/TestSuite/CSV-Reports/{sortByTree-Reference.csv → refs/sortByTree.csv} +0 -0
- data/test/TestSuite/CSV-Reports/{sortBy_duration.down-Reference.csv → refs/sortBy_duration.down.csv} +0 -0
- data/test/TestSuite/CSV-Reports/{sortBy_effort.up-Reference.csv → refs/sortBy_effort.up.csv} +0 -0
- data/test/TestSuite/CSV-Reports/{sortBy_plan.start.down-Reference.csv → refs/sortBy_plan.start.down.csv} +0 -0
- data/test/TestSuite/CSV-Reports/{taskreport-Reference.csv → refs/taskreport.csv} +0 -0
- data/test/TestSuite/CSV-Reports/{taskreport_with_resources-Reference.csv → refs/taskreport_with_resources.csv} +0 -0
- data/test/TestSuite/CSV-Reports/{weekly-Reference.csv → refs/weekly.csv} +0 -0
- data/test/TestSuite/HTML-Reports/Alerts.tjp +12 -0
- data/test/TestSuite/Scheduler/Correct/Allocate.tjp +2 -2
- data/test/TestSuite/Scheduler/Correct/Container-2.tjp +1 -2
- data/test/TestSuite/Scheduler/Correct/InheritedAttributes.tjp +77 -0
- data/test/TestSuite/Scheduler/Correct/WeakDeps.tjp +40 -0
- data/test/TestSuite/Scheduler/Errors/loop_detected_12.tjp +2 -2
- data/test/TestSuite/Scheduler/Errors/loop_detected_13.tjp +3 -4
- data/test/TestSuite/Scheduler/Errors/loop_detected_3.tjp +2 -2
- data/test/TestSuite/Scheduler/Errors/loop_detected_6.tjp +8 -7
- data/test/TestSuite/Scheduler/Errors/onend_wrong_direction.tjp +19 -0
- data/test/TestSuite/Scheduler/Errors/onstart_wrong_direction.tjp +18 -0
- data/test/TestSuite/Scheduler/Errors/task_depend_multi.tjp +1 -2
- data/test/TestSuite/StatusSheets/StatusSheetTemplates/2002-03-02/boss_2002-03-02.tji +46 -0
- data/test/TestSuite/StatusSheets/StatusSheetTemplates/2002-03-02/dev2_2002-03-02.tji +22 -0
- data/test/TestSuite/StatusSheets/StatusSheetTemplates/2002-03-02/resources.yml +11 -0
- data/test/TestSuite/StatusSheets/StatusSheetTemplates/acceptable_intervals +1 -0
- data/test/TestSuite/StatusSheets/sender.log +256 -0
- data/test/TestSuite/StatusSheets/statussheets.log +9 -0
- data/test/TestSuite/StatusSheets/tj3d.log +395 -0
- data/test/TestSuite/Syntax/Correct/Limits-1.tjp +2 -0
- data/test/TestSuite/Syntax/Correct/Niku.tjp +6 -1
- data/test/TestSuite/Syntax/Correct/Scenario.tjp +4 -1
- data/test/TestSuite/Syntax/Correct/Supplement.tjp +12 -5
- data/test/TestSuite/Syntax/Correct/TaskPrefix.tji +3 -0
- data/test/TestSuite/Syntax/Correct/TaskPrefix.tjp +24 -0
- data/test/TestSuite/Syntax/Correct/css/tjreport.css +7 -2
- data/test/TestSuite/Syntax/Correct/tutorial.tjp +15 -5
- data/test/all.rb +2 -4
- data/test/test_BatchProcessor.rb +2 -1
- data/test/test_CSV-Reports.rb +34 -23
- data/test/test_CSVFile.rb +2 -1
- data/test/test_CollisionDetector.rb +3 -2
- data/test/test_Journal.rb +2 -1
- data/test/test_Limits.rb +2 -1
- data/test/test_LogicalExpression.rb +2 -1
- data/test/test_MacroTable.rb +2 -1
- data/test/test_Project.rb +3 -2
- data/test/test_ProjectFileScanner.rb +2 -1
- data/test/test_PropertySet.rb +2 -1
- data/test/test_Query.rb +2 -1
- data/test/test_RealFormat.rb +2 -1
- data/test/test_ReportGenerator.rb +2 -1
- data/test/test_RichText.rb +2 -1
- data/test/test_Scheduler.rb +2 -1
- data/test/test_ShiftAssignments.rb +2 -1
- data/test/test_SimpleQueryExpander.rb +2 -1
- data/test/test_Syntax.rb +2 -1
- data/test/test_TextFormatter.rb +3 -2
- data/test/test_TjTime.rb +2 -1
- data/test/test_TjpExample.rb +2 -1
- data/test/test_URLParameter.rb +2 -1
- data/test/test_UTF8String.rb +2 -1
- data/test/test_WorkingHours.rb +2 -1
- data/test/test_deep_copy.rb +2 -1
- metadata +74 -20
- data/doc/StringIO.html +0 -595
- data/test/TestSuite/Scheduler/Errors/loop_detected_7.tjp +0 -46
- data/test/TestSuite/Scheduler/Errors/loop_detected_8.tjp +0 -51
- data/test/TestSuite/Scheduler/Errors/multiple_durations.tjp +0 -11
|
@@ -127,6 +127,8 @@
|
|
|
127
127
|
|
|
128
128
|
<li><a href="../TaskJuggler/AttributeDefinition.html">TaskJuggler::AttributeDefinition</a></li>
|
|
129
129
|
|
|
130
|
+
<li><a href="../TaskJuggler/AttributeOverwrite.html">TaskJuggler::AttributeOverwrite</a></li>
|
|
131
|
+
|
|
130
132
|
<li><a href="../TaskJuggler/BatchProcessor.html">TaskJuggler::BatchProcessor</a></li>
|
|
131
133
|
|
|
132
134
|
<li><a href="../TaskJuggler/Booking.html">TaskJuggler::Booking</a></li>
|
|
@@ -205,6 +207,8 @@
|
|
|
205
207
|
|
|
206
208
|
<li><a href="../TaskJuggler/Interval.html">TaskJuggler::Interval</a></li>
|
|
207
209
|
|
|
210
|
+
<li><a href="../TaskJuggler/IntervalList.html">TaskJuggler::IntervalList</a></li>
|
|
211
|
+
|
|
208
212
|
<li><a href="../TaskJuggler/IntervalListAttribute.html">TaskJuggler::IntervalListAttribute</a></li>
|
|
209
213
|
|
|
210
214
|
<li><a href="../TaskJuggler/JobInfo.html">TaskJuggler::JobInfo</a></li>
|
|
@@ -237,6 +241,8 @@
|
|
|
237
241
|
|
|
238
242
|
<li><a href="../TaskJuggler/LogicalExpressionAttribute.html">TaskJuggler::LogicalExpressionAttribute</a></li>
|
|
239
243
|
|
|
244
|
+
<li><a href="../TaskJuggler/LogicalExpressionListAttribute.html">TaskJuggler::LogicalExpressionListAttribute</a></li>
|
|
245
|
+
|
|
240
246
|
<li><a href="../TaskJuggler/LogicalFlag.html">TaskJuggler::LogicalFlag</a></li>
|
|
241
247
|
|
|
242
248
|
<li><a href="../TaskJuggler/LogicalFunction.html">TaskJuggler::LogicalFunction</a></li>
|
|
@@ -517,6 +523,8 @@
|
|
|
517
523
|
|
|
518
524
|
<li><a href="../TaskJuggler/WebServer.html">TaskJuggler::WebServer</a></li>
|
|
519
525
|
|
|
526
|
+
<li><a href="../TaskJuggler/WelcomePage.html">TaskJuggler::WelcomePage</a></li>
|
|
527
|
+
|
|
520
528
|
<li><a href="../TaskJuggler/WorkingHours.html">TaskJuggler::WorkingHours</a></li>
|
|
521
529
|
|
|
522
530
|
<li><a href="../TaskJuggler/WorkingHoursAttribute.html">TaskJuggler::WorkingHoursAttribute</a></li>
|
|
@@ -543,8 +551,6 @@
|
|
|
543
551
|
|
|
544
552
|
<li><a href="../String.html">String</a></li>
|
|
545
553
|
|
|
546
|
-
<li><a href="../StringIO.html">StringIO</a></li>
|
|
547
|
-
|
|
548
554
|
</ul>
|
|
549
555
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
|
550
556
|
</div>
|
|
@@ -754,34 +760,34 @@ Create a new <a href="JournalEntry.html">JournalEntry</a> object.
|
|
|
754
760
|
<div class="method-source-code"
|
|
755
761
|
id="new-source">
|
|
756
762
|
<pre>
|
|
757
|
-
<span class="ruby-comment cmt"># File lib/Journal.rb, line
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
763
|
+
<span class="ruby-comment cmt"># File lib/Journal.rb, line 28</span>
|
|
764
|
+
28: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">journal</span>, <span class="ruby-identifier">date</span>, <span class="ruby-identifier">headline</span>, <span class="ruby-identifier">property</span>, <span class="ruby-identifier">sourceFileInfo</span> = <span class="ruby-keyword kw">nil</span>)
|
|
765
|
+
29: <span class="ruby-comment cmt"># A reference to the Journal object this entry belongs to.</span>
|
|
766
|
+
30: <span class="ruby-ivar">@journal</span> = <span class="ruby-identifier">journal</span>
|
|
767
|
+
31: <span class="ruby-comment cmt"># The date of the entry.</span>
|
|
768
|
+
32: <span class="ruby-ivar">@date</span> = <span class="ruby-identifier">date</span>
|
|
769
|
+
33: <span class="ruby-comment cmt"># A very short description. Should not be longer than about 40</span>
|
|
770
|
+
34: <span class="ruby-comment cmt"># characters.</span>
|
|
771
|
+
35: <span class="ruby-ivar">@headline</span> = <span class="ruby-identifier">headline</span>
|
|
772
|
+
36: <span class="ruby-comment cmt"># A reference to a PropertyTreeNode object.</span>
|
|
773
|
+
37: <span class="ruby-ivar">@property</span> = <span class="ruby-identifier">property</span>
|
|
774
|
+
38: <span class="ruby-comment cmt"># Source file location of this entry of type SourceFileInfo</span>
|
|
775
|
+
39: <span class="ruby-ivar">@sourceFileInfo</span> = <span class="ruby-identifier">sourceFileInfo</span>
|
|
776
|
+
40: <span class="ruby-comment cmt"># A reference to a Resource.</span>
|
|
777
|
+
41: <span class="ruby-ivar">@author</span> = <span class="ruby-keyword kw">nil</span>
|
|
778
|
+
42: <span class="ruby-comment cmt"># An introductory or summarizing RichText paragraph.</span>
|
|
779
|
+
43: <span class="ruby-ivar">@summary</span> = <span class="ruby-keyword kw">nil</span>
|
|
780
|
+
44: <span class="ruby-comment cmt"># A RichText of arbitrary length.</span>
|
|
781
|
+
45: <span class="ruby-ivar">@details</span> = <span class="ruby-keyword kw">nil</span>
|
|
782
|
+
46: <span class="ruby-comment cmt"># The alert level.</span>
|
|
783
|
+
47: <span class="ruby-ivar">@alertLevel</span> = <span class="ruby-value">0</span>
|
|
784
|
+
48: <span class="ruby-comment cmt"># A reference to a time sheet record that was used to create this</span>
|
|
785
|
+
49: <span class="ruby-comment cmt"># JournalEntry object.</span>
|
|
786
|
+
50: <span class="ruby-ivar">@timeSheetRecord</span> = <span class="ruby-keyword kw">nil</span>
|
|
787
|
+
51:
|
|
788
|
+
52: <span class="ruby-comment cmt"># Add the new entry to the journal.</span>
|
|
789
|
+
53: <span class="ruby-ivar">@journal</span>.<span class="ruby-identifier">addEntry</span>(<span class="ruby-keyword kw">self</span>)
|
|
790
|
+
54: <span class="ruby-keyword kw">end</span></pre>
|
|
785
791
|
</div>
|
|
786
792
|
|
|
787
793
|
</div>
|
|
@@ -147,6 +147,8 @@
|
|
|
147
147
|
|
|
148
148
|
<li><a href="../TaskJuggler/AttributeDefinition.html">TaskJuggler::AttributeDefinition</a></li>
|
|
149
149
|
|
|
150
|
+
<li><a href="../TaskJuggler/AttributeOverwrite.html">TaskJuggler::AttributeOverwrite</a></li>
|
|
151
|
+
|
|
150
152
|
<li><a href="../TaskJuggler/BatchProcessor.html">TaskJuggler::BatchProcessor</a></li>
|
|
151
153
|
|
|
152
154
|
<li><a href="../TaskJuggler/Booking.html">TaskJuggler::Booking</a></li>
|
|
@@ -225,6 +227,8 @@
|
|
|
225
227
|
|
|
226
228
|
<li><a href="../TaskJuggler/Interval.html">TaskJuggler::Interval</a></li>
|
|
227
229
|
|
|
230
|
+
<li><a href="../TaskJuggler/IntervalList.html">TaskJuggler::IntervalList</a></li>
|
|
231
|
+
|
|
228
232
|
<li><a href="../TaskJuggler/IntervalListAttribute.html">TaskJuggler::IntervalListAttribute</a></li>
|
|
229
233
|
|
|
230
234
|
<li><a href="../TaskJuggler/JobInfo.html">TaskJuggler::JobInfo</a></li>
|
|
@@ -257,6 +261,8 @@
|
|
|
257
261
|
|
|
258
262
|
<li><a href="../TaskJuggler/LogicalExpressionAttribute.html">TaskJuggler::LogicalExpressionAttribute</a></li>
|
|
259
263
|
|
|
264
|
+
<li><a href="../TaskJuggler/LogicalExpressionListAttribute.html">TaskJuggler::LogicalExpressionListAttribute</a></li>
|
|
265
|
+
|
|
260
266
|
<li><a href="../TaskJuggler/LogicalFlag.html">TaskJuggler::LogicalFlag</a></li>
|
|
261
267
|
|
|
262
268
|
<li><a href="../TaskJuggler/LogicalFunction.html">TaskJuggler::LogicalFunction</a></li>
|
|
@@ -537,6 +543,8 @@
|
|
|
537
543
|
|
|
538
544
|
<li><a href="../TaskJuggler/WebServer.html">TaskJuggler::WebServer</a></li>
|
|
539
545
|
|
|
546
|
+
<li><a href="../TaskJuggler/WelcomePage.html">TaskJuggler::WelcomePage</a></li>
|
|
547
|
+
|
|
540
548
|
<li><a href="../TaskJuggler/WorkingHours.html">TaskJuggler::WorkingHours</a></li>
|
|
541
549
|
|
|
542
550
|
<li><a href="../TaskJuggler/WorkingHoursAttribute.html">TaskJuggler::WorkingHoursAttribute</a></li>
|
|
@@ -563,8 +571,6 @@
|
|
|
563
571
|
|
|
564
572
|
<li><a href="../String.html">String</a></li>
|
|
565
573
|
|
|
566
|
-
<li><a href="../StringIO.html">StringIO</a></li>
|
|
567
|
-
|
|
568
574
|
</ul>
|
|
569
575
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
|
570
576
|
</div>
|
|
@@ -619,11 +625,11 @@ store a journal.
|
|
|
619
625
|
<div class="method-source-code"
|
|
620
626
|
id="new-source">
|
|
621
627
|
<pre>
|
|
622
|
-
<span class="ruby-comment cmt"># File lib/Journal.rb, line
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
628
|
+
<span class="ruby-comment cmt"># File lib/Journal.rb, line 68</span>
|
|
629
|
+
68: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
|
|
630
|
+
69: <span class="ruby-ivar">@entries</span> = []
|
|
631
|
+
70: <span class="ruby-ivar">@sorted</span> = <span class="ruby-keyword kw">false</span>
|
|
632
|
+
71: <span class="ruby-keyword kw">end</span></pre>
|
|
627
633
|
</div>
|
|
628
634
|
|
|
629
635
|
</div>
|
|
@@ -663,11 +669,11 @@ list will be marked as unsorted.
|
|
|
663
669
|
<div class="method-source-code"
|
|
664
670
|
id="--source">
|
|
665
671
|
<pre>
|
|
666
|
-
<span class="ruby-comment cmt"># File lib/Journal.rb, line
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
672
|
+
<span class="ruby-comment cmt"># File lib/Journal.rb, line 79</span>
|
|
673
|
+
79: <span class="ruby-keyword kw">def</span> <span class="ruby-operator"><<</span>(<span class="ruby-identifier">entry</span>)
|
|
674
|
+
80: <span class="ruby-ivar">@entries</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">entry</span>
|
|
675
|
+
81: <span class="ruby-ivar">@sorted</span> = <span class="ruby-keyword kw">false</span>
|
|
676
|
+
82: <span class="ruby-keyword kw">end</span></pre>
|
|
671
677
|
</div>
|
|
672
678
|
|
|
673
679
|
</div>
|
|
@@ -700,11 +706,11 @@ Return the <em>index</em>-th entry.
|
|
|
700
706
|
<div class="method-source-code"
|
|
701
707
|
id="--source">
|
|
702
708
|
<pre>
|
|
703
|
-
<span class="ruby-comment cmt"># File lib/Journal.rb, line
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
709
|
+
<span class="ruby-comment cmt"># File lib/Journal.rb, line 93</span>
|
|
710
|
+
93: <span class="ruby-keyword kw">def</span><span class="ruby-operator">[]</span>(<span class="ruby-identifier">index</span>)
|
|
711
|
+
94: <span class="ruby-identifier">sort!</span>
|
|
712
|
+
95: <span class="ruby-ivar">@entries</span>[<span class="ruby-identifier">index</span>]
|
|
713
|
+
96: <span class="ruby-keyword kw">end</span></pre>
|
|
708
714
|
</div>
|
|
709
715
|
|
|
710
716
|
</div>
|
|
@@ -737,10 +743,10 @@ Return the number of entries.
|
|
|
737
743
|
<div class="method-source-code"
|
|
738
744
|
id="count-source">
|
|
739
745
|
<pre>
|
|
740
|
-
<span class="ruby-comment cmt"># File lib/Journal.rb, line
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
746
|
+
<span class="ruby-comment cmt"># File lib/Journal.rb, line 74</span>
|
|
747
|
+
74: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">count</span>
|
|
748
|
+
75: <span class="ruby-ivar">@entries</span>.<span class="ruby-identifier">length</span>
|
|
749
|
+
76: <span class="ruby-keyword kw">end</span></pre>
|
|
744
750
|
</div>
|
|
745
751
|
|
|
746
752
|
</div>
|
|
@@ -773,10 +779,10 @@ Like Array::delete_if
|
|
|
773
779
|
<div class="method-source-code"
|
|
774
780
|
id="delete-if-source">
|
|
775
781
|
<pre>
|
|
776
|
-
<span class="ruby-comment cmt"># File lib/Journal.rb, line
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
782
|
+
<span class="ruby-comment cmt"># File lib/Journal.rb, line 107</span>
|
|
783
|
+
107: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete_if</span>
|
|
784
|
+
108: <span class="ruby-ivar">@entries</span>.<span class="ruby-identifier">delete_if</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">e</span><span class="ruby-operator">|</span> <span class="ruby-keyword kw">yield</span>(<span class="ruby-identifier">e</span>) }
|
|
785
|
+
109: <span class="ruby-keyword kw">end</span></pre>
|
|
780
786
|
</div>
|
|
781
787
|
|
|
782
788
|
</div>
|
|
@@ -809,13 +815,13 @@ The well known iterator. The list will be sorted first.
|
|
|
809
815
|
<div class="method-source-code"
|
|
810
816
|
id="each-source">
|
|
811
817
|
<pre>
|
|
812
|
-
<span class="ruby-comment cmt"># File lib/Journal.rb, line
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
818
|
+
<span class="ruby-comment cmt"># File lib/Journal.rb, line 99</span>
|
|
819
|
+
99: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each</span>
|
|
820
|
+
100: <span class="ruby-identifier">sort!</span>
|
|
821
|
+
101: <span class="ruby-ivar">@entries</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">entry</span><span class="ruby-operator">|</span>
|
|
822
|
+
102: <span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">entry</span>
|
|
823
|
+
103: <span class="ruby-keyword kw">end</span>
|
|
824
|
+
104: <span class="ruby-keyword kw">end</span></pre>
|
|
819
825
|
</div>
|
|
820
826
|
|
|
821
827
|
</div>
|
|
@@ -848,10 +854,10 @@ Like Array::empty?
|
|
|
848
854
|
<div class="method-source-code"
|
|
849
855
|
id="empty--source">
|
|
850
856
|
<pre>
|
|
851
|
-
<span class="ruby-comment cmt"># File lib/Journal.rb, line
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
857
|
+
<span class="ruby-comment cmt"># File lib/Journal.rb, line 112</span>
|
|
858
|
+
112: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">empty?</span>
|
|
859
|
+
113: <span class="ruby-ivar">@entries</span>.<span class="ruby-identifier">empty?</span>
|
|
860
|
+
114: <span class="ruby-keyword kw">end</span></pre>
|
|
855
861
|
</div>
|
|
856
862
|
|
|
857
863
|
</div>
|
|
@@ -884,11 +890,11 @@ Like Array::first but list is first sorted.
|
|
|
884
890
|
<div class="method-source-code"
|
|
885
891
|
id="first-source">
|
|
886
892
|
<pre>
|
|
887
|
-
<span class="ruby-comment cmt"># File lib/Journal.rb, line
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
893
|
+
<span class="ruby-comment cmt"># File lib/Journal.rb, line 122</span>
|
|
894
|
+
122: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">first</span>
|
|
895
|
+
123: <span class="ruby-identifier">sort!</span>
|
|
896
|
+
124: <span class="ruby-ivar">@entries</span>.<span class="ruby-identifier">first</span>
|
|
897
|
+
125: <span class="ruby-keyword kw">end</span></pre>
|
|
892
898
|
</div>
|
|
893
899
|
|
|
894
900
|
</div>
|
|
@@ -921,10 +927,10 @@ Like Array::include?
|
|
|
921
927
|
<div class="method-source-code"
|
|
922
928
|
id="include--source">
|
|
923
929
|
<pre>
|
|
924
|
-
<span class="ruby-comment cmt"># File lib/Journal.rb, line
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
930
|
+
<span class="ruby-comment cmt"># File lib/Journal.rb, line 117</span>
|
|
931
|
+
117: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">include?</span>(<span class="ruby-identifier">entry</span>)
|
|
932
|
+
118: <span class="ruby-ivar">@entries</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">entry</span>)
|
|
933
|
+
119: <span class="ruby-keyword kw">end</span></pre>
|
|
928
934
|
</div>
|
|
929
935
|
|
|
930
936
|
</div>
|
|
@@ -961,26 +967,26 @@ will be empty.
|
|
|
961
967
|
<div class="method-source-code"
|
|
962
968
|
id="last-source">
|
|
963
969
|
<pre>
|
|
964
|
-
<span class="ruby-comment cmt"># File lib/Journal.rb, line
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
970
|
+
<span class="ruby-comment cmt"># File lib/Journal.rb, line 132</span>
|
|
971
|
+
132: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">last</span>(<span class="ruby-identifier">date</span> = <span class="ruby-keyword kw">nil</span>)
|
|
972
|
+
133: <span class="ruby-identifier">result</span> = <span class="ruby-constant">JournalEntryList</span>.<span class="ruby-identifier">new</span>
|
|
973
|
+
134: <span class="ruby-identifier">sort!</span>
|
|
974
|
+
135:
|
|
975
|
+
136: <span class="ruby-ivar">@entries</span>.<span class="ruby-identifier">reverse_each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">e</span><span class="ruby-operator">|</span>
|
|
976
|
+
137: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">empty?</span>
|
|
977
|
+
138: <span class="ruby-comment cmt"># We haven't found any yet. So add the first one we find before the</span>
|
|
978
|
+
139: <span class="ruby-comment cmt"># cut-off date.</span>
|
|
979
|
+
140: <span class="ruby-identifier">result</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">e</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">date</span> <span class="ruby-operator"><=</span> <span class="ruby-identifier">date</span>
|
|
980
|
+
141: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">first</span>.<span class="ruby-identifier">date</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">date</span>
|
|
981
|
+
142: <span class="ruby-comment cmt"># Now we only accept other entries with the exact same date.</span>
|
|
982
|
+
143: <span class="ruby-identifier">result</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">e</span>
|
|
983
|
+
144: <span class="ruby-keyword kw">else</span>
|
|
984
|
+
145: <span class="ruby-comment cmt"># We've found all entries we are looking for.</span>
|
|
985
|
+
146: <span class="ruby-keyword kw">break</span>
|
|
986
|
+
147: <span class="ruby-keyword kw">end</span>
|
|
987
|
+
148: <span class="ruby-keyword kw">end</span>
|
|
988
|
+
149: <span class="ruby-identifier">result</span>.<span class="ruby-identifier">sort!</span>
|
|
989
|
+
150: <span class="ruby-keyword kw">end</span></pre>
|
|
984
990
|
</div>
|
|
985
991
|
|
|
986
992
|
</div>
|
|
@@ -1015,23 +1021,23 @@ sequence number.
|
|
|
1015
1021
|
<div class="method-source-code"
|
|
1016
1022
|
id="sort--source">
|
|
1017
1023
|
<pre>
|
|
1018
|
-
<span class="ruby-comment cmt"># File lib/Journal.rb, line
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1024
|
+
<span class="ruby-comment cmt"># File lib/Journal.rb, line 154</span>
|
|
1025
|
+
154: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sort!</span>
|
|
1026
|
+
155: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span>
|
|
1027
|
+
156: <span class="ruby-ivar">@entries</span>.<span class="ruby-identifier">sort!</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">a</span>, <span class="ruby-identifier">b</span><span class="ruby-operator">|</span> <span class="ruby-keyword kw">yield</span>(<span class="ruby-identifier">a</span>, <span class="ruby-identifier">b</span>) }
|
|
1028
|
+
157: <span class="ruby-keyword kw">else</span>
|
|
1029
|
+
158: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">self</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@sorted</span>
|
|
1030
|
+
159:
|
|
1031
|
+
160: <span class="ruby-ivar">@entries</span>.<span class="ruby-identifier">sort!</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">a</span>, <span class="ruby-identifier">b</span><span class="ruby-operator">|</span> <span class="ruby-identifier">a</span>.<span class="ruby-identifier">date</span> <span class="ruby-operator">!=</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">date</span> <span class="ruby-operator">?</span>
|
|
1032
|
+
161: <span class="ruby-identifier">a</span>.<span class="ruby-identifier">date</span> <span class="ruby-operator"><=></span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">date</span> <span class="ruby-operator">:</span>
|
|
1033
|
+
162: (<span class="ruby-identifier">a</span>.<span class="ruby-identifier">alertLevel</span> <span class="ruby-operator">!=</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">alertLevel</span> <span class="ruby-operator">?</span>
|
|
1034
|
+
163: <span class="ruby-identifier">a</span>.<span class="ruby-identifier">alertLevel</span> <span class="ruby-operator"><=></span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">alertLevel</span> <span class="ruby-operator">:</span>
|
|
1035
|
+
164: <span class="ruby-identifier">a</span>.<span class="ruby-identifier">property</span>.<span class="ruby-identifier">sequenceNo</span> <span class="ruby-operator"><=></span>
|
|
1036
|
+
165: <span class="ruby-identifier">b</span>.<span class="ruby-identifier">property</span>.<span class="ruby-identifier">sequenceNo</span>) }
|
|
1037
|
+
166: <span class="ruby-keyword kw">end</span>
|
|
1038
|
+
167: <span class="ruby-ivar">@sorted</span> = <span class="ruby-keyword kw">true</span>
|
|
1039
|
+
168: <span class="ruby-keyword kw">self</span>
|
|
1040
|
+
169: <span class="ruby-keyword kw">end</span></pre>
|
|
1035
1041
|
</div>
|
|
1036
1042
|
|
|
1037
1043
|
</div>
|
|
@@ -129,6 +129,8 @@
|
|
|
129
129
|
|
|
130
130
|
<li><a href="../TaskJuggler/AttributeDefinition.html">TaskJuggler::AttributeDefinition</a></li>
|
|
131
131
|
|
|
132
|
+
<li><a href="../TaskJuggler/AttributeOverwrite.html">TaskJuggler::AttributeOverwrite</a></li>
|
|
133
|
+
|
|
132
134
|
<li><a href="../TaskJuggler/BatchProcessor.html">TaskJuggler::BatchProcessor</a></li>
|
|
133
135
|
|
|
134
136
|
<li><a href="../TaskJuggler/Booking.html">TaskJuggler::Booking</a></li>
|
|
@@ -207,6 +209,8 @@
|
|
|
207
209
|
|
|
208
210
|
<li><a href="../TaskJuggler/Interval.html">TaskJuggler::Interval</a></li>
|
|
209
211
|
|
|
212
|
+
<li><a href="../TaskJuggler/IntervalList.html">TaskJuggler::IntervalList</a></li>
|
|
213
|
+
|
|
210
214
|
<li><a href="../TaskJuggler/IntervalListAttribute.html">TaskJuggler::IntervalListAttribute</a></li>
|
|
211
215
|
|
|
212
216
|
<li><a href="../TaskJuggler/JobInfo.html">TaskJuggler::JobInfo</a></li>
|
|
@@ -239,6 +243,8 @@
|
|
|
239
243
|
|
|
240
244
|
<li><a href="../TaskJuggler/LogicalExpressionAttribute.html">TaskJuggler::LogicalExpressionAttribute</a></li>
|
|
241
245
|
|
|
246
|
+
<li><a href="../TaskJuggler/LogicalExpressionListAttribute.html">TaskJuggler::LogicalExpressionListAttribute</a></li>
|
|
247
|
+
|
|
242
248
|
<li><a href="../TaskJuggler/LogicalFlag.html">TaskJuggler::LogicalFlag</a></li>
|
|
243
249
|
|
|
244
250
|
<li><a href="../TaskJuggler/LogicalFunction.html">TaskJuggler::LogicalFunction</a></li>
|
|
@@ -519,6 +525,8 @@
|
|
|
519
525
|
|
|
520
526
|
<li><a href="../TaskJuggler/WebServer.html">TaskJuggler::WebServer</a></li>
|
|
521
527
|
|
|
528
|
+
<li><a href="../TaskJuggler/WelcomePage.html">TaskJuggler::WelcomePage</a></li>
|
|
529
|
+
|
|
522
530
|
<li><a href="../TaskJuggler/WorkingHours.html">TaskJuggler::WorkingHours</a></li>
|
|
523
531
|
|
|
524
532
|
<li><a href="../TaskJuggler/WorkingHoursAttribute.html">TaskJuggler::WorkingHoursAttribute</a></li>
|
|
@@ -545,8 +553,6 @@
|
|
|
545
553
|
|
|
546
554
|
<li><a href="../String.html">String</a></li>
|
|
547
555
|
|
|
548
|
-
<li><a href="../StringIO.html">StringIO</a></li>
|
|
549
|
-
|
|
550
556
|
</ul>
|
|
551
557
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
|
552
558
|
</div>
|
|
@@ -629,10 +635,10 @@ is special. It means all keywords of a particular set are included.
|
|
|
629
635
|
<div class="method-source-code"
|
|
630
636
|
id="include--source">
|
|
631
637
|
<pre>
|
|
632
|
-
<span class="ruby-comment cmt"># File lib/KeywordArray.rb, line
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
638
|
+
<span class="ruby-comment cmt"># File lib/KeywordArray.rb, line 24</span>
|
|
639
|
+
24: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">include?</span>(<span class="ruby-identifier">keyword</span>)
|
|
640
|
+
25: (<span class="ruby-keyword kw">self</span>[<span class="ruby-value">0</span>] <span class="ruby-operator">==</span> <span class="ruby-value str">'*'</span>) <span class="ruby-operator">||</span> <span class="ruby-identifier">a_include?</span>(<span class="ruby-identifier">keyword</span>)
|
|
641
|
+
26: <span class="ruby-keyword kw">end</span></pre>
|
|
636
642
|
</div>
|
|
637
643
|
|
|
638
644
|
</div>
|
|
@@ -155,6 +155,8 @@
|
|
|
155
155
|
|
|
156
156
|
<li><a href="../TaskJuggler/AttributeDefinition.html">TaskJuggler::AttributeDefinition</a></li>
|
|
157
157
|
|
|
158
|
+
<li><a href="../TaskJuggler/AttributeOverwrite.html">TaskJuggler::AttributeOverwrite</a></li>
|
|
159
|
+
|
|
158
160
|
<li><a href="../TaskJuggler/BatchProcessor.html">TaskJuggler::BatchProcessor</a></li>
|
|
159
161
|
|
|
160
162
|
<li><a href="../TaskJuggler/Booking.html">TaskJuggler::Booking</a></li>
|
|
@@ -233,6 +235,8 @@
|
|
|
233
235
|
|
|
234
236
|
<li><a href="../TaskJuggler/Interval.html">TaskJuggler::Interval</a></li>
|
|
235
237
|
|
|
238
|
+
<li><a href="../TaskJuggler/IntervalList.html">TaskJuggler::IntervalList</a></li>
|
|
239
|
+
|
|
236
240
|
<li><a href="../TaskJuggler/IntervalListAttribute.html">TaskJuggler::IntervalListAttribute</a></li>
|
|
237
241
|
|
|
238
242
|
<li><a href="../TaskJuggler/JobInfo.html">TaskJuggler::JobInfo</a></li>
|
|
@@ -265,6 +269,8 @@
|
|
|
265
269
|
|
|
266
270
|
<li><a href="../TaskJuggler/LogicalExpressionAttribute.html">TaskJuggler::LogicalExpressionAttribute</a></li>
|
|
267
271
|
|
|
272
|
+
<li><a href="../TaskJuggler/LogicalExpressionListAttribute.html">TaskJuggler::LogicalExpressionListAttribute</a></li>
|
|
273
|
+
|
|
268
274
|
<li><a href="../TaskJuggler/LogicalFlag.html">TaskJuggler::LogicalFlag</a></li>
|
|
269
275
|
|
|
270
276
|
<li><a href="../TaskJuggler/LogicalFunction.html">TaskJuggler::LogicalFunction</a></li>
|
|
@@ -545,6 +551,8 @@
|
|
|
545
551
|
|
|
546
552
|
<li><a href="../TaskJuggler/WebServer.html">TaskJuggler::WebServer</a></li>
|
|
547
553
|
|
|
554
|
+
<li><a href="../TaskJuggler/WelcomePage.html">TaskJuggler::WelcomePage</a></li>
|
|
555
|
+
|
|
548
556
|
<li><a href="../TaskJuggler/WorkingHours.html">TaskJuggler::WorkingHours</a></li>
|
|
549
557
|
|
|
550
558
|
<li><a href="../TaskJuggler/WorkingHoursAttribute.html">TaskJuggler::WorkingHoursAttribute</a></li>
|
|
@@ -571,8 +579,6 @@
|
|
|
571
579
|
|
|
572
580
|
<li><a href="../String.html">String</a></li>
|
|
573
581
|
|
|
574
|
-
<li><a href="../StringIO.html">StringIO</a></li>
|
|
575
|
-
|
|
576
582
|
</ul>
|
|
577
583
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
|
578
584
|
</div>
|
|
@@ -826,38 +832,38 @@ TextParser::Patterns that are optional attributes to this keyword.
|
|
|
826
832
|
<div class="method-source-code"
|
|
827
833
|
id="new-source">
|
|
828
834
|
<pre>
|
|
829
|
-
<span class="ruby-comment cmt"># File lib/KeywordDocumentation.rb, line
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
835
|
+
<span class="ruby-comment cmt"># File lib/KeywordDocumentation.rb, line 44</span>
|
|
836
|
+
44: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">rule</span>, <span class="ruby-identifier">pattern</span>, <span class="ruby-identifier">syntax</span>, <span class="ruby-identifier">args</span>, <span class="ruby-identifier">optAttrPatterns</span>, <span class="ruby-identifier">manual</span>)
|
|
837
|
+
45: <span class="ruby-ivar">@messageHandler</span> = <span class="ruby-constant">MessageHandler</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">true</span>)
|
|
838
|
+
46: <span class="ruby-ivar">@rule</span> = <span class="ruby-identifier">rule</span>
|
|
839
|
+
47: <span class="ruby-ivar">@pattern</span> = <span class="ruby-identifier">pattern</span>
|
|
840
|
+
48: <span class="ruby-comment cmt"># The unique identifier. Usually the attribute or property name. To</span>
|
|
841
|
+
49: <span class="ruby-comment cmt"># disambiguate a .<scope> can be added.</span>
|
|
842
|
+
50: <span class="ruby-ivar">@keyword</span> = <span class="ruby-identifier">pattern</span>.<span class="ruby-identifier">keyword</span>
|
|
843
|
+
51: <span class="ruby-comment cmt"># Similar to @keyword, but without the scope. Since there could be</span>
|
|
844
|
+
52: <span class="ruby-comment cmt"># several, this is an Array of String objects.</span>
|
|
845
|
+
53: <span class="ruby-ivar">@names</span> = []
|
|
846
|
+
54: <span class="ruby-ivar">@syntax</span> = <span class="ruby-identifier">syntax</span>
|
|
847
|
+
55: <span class="ruby-ivar">@args</span> = <span class="ruby-identifier">args</span>
|
|
848
|
+
56: <span class="ruby-ivar">@manual</span> = <span class="ruby-identifier">manual</span>
|
|
849
|
+
57: <span class="ruby-comment cmt"># Hash that maps patterns of optional attributes to a boolean value. It</span>
|
|
850
|
+
58: <span class="ruby-comment cmt"># is true if the pattern is a scenario specific attribute.</span>
|
|
851
|
+
59: <span class="ruby-ivar">@optAttrPatterns</span> = <span class="ruby-identifier">optAttrPatterns</span>
|
|
852
|
+
60: <span class="ruby-comment cmt"># The above hash is later converted into a list that points to the</span>
|
|
853
|
+
61: <span class="ruby-comment cmt"># keyword documentation of the optional attribute.</span>
|
|
854
|
+
62: <span class="ruby-ivar">@optionalAttributes</span> = []
|
|
855
|
+
63: <span class="ruby-ivar">@scenarioSpecific</span> = <span class="ruby-keyword kw">false</span>
|
|
856
|
+
64: <span class="ruby-ivar">@inheritedFromProject</span>= <span class="ruby-keyword kw">false</span>
|
|
857
|
+
65: <span class="ruby-ivar">@inheritedFromParent</span> = <span class="ruby-keyword kw">false</span>
|
|
858
|
+
66: <span class="ruby-ivar">@contexts</span> = []
|
|
859
|
+
67: <span class="ruby-ivar">@seeAlso</span> = []
|
|
860
|
+
68: <span class="ruby-comment cmt"># The following are references to the neighboring keyword in an</span>
|
|
861
|
+
69: <span class="ruby-comment cmt"># alphabetically sorted list.</span>
|
|
862
|
+
70: <span class="ruby-ivar">@predecessor</span> = <span class="ruby-keyword kw">nil</span>
|
|
863
|
+
71: <span class="ruby-ivar">@successor</span> = <span class="ruby-keyword kw">nil</span>
|
|
864
|
+
72: <span class="ruby-comment cmt"># Array to collect all references to other RichText objects.</span>
|
|
865
|
+
73: <span class="ruby-ivar">@references</span> = []
|
|
866
|
+
74: <span class="ruby-keyword kw">end</span></pre>
|
|
861
867
|
</div>
|
|
862
868
|
|
|
863
869
|
</div>
|
|
@@ -894,37 +900,37 @@ TextParser::Patterns that are optional attributes to this keyword.
|
|
|
894
900
|
<div class="method-source-code"
|
|
895
901
|
id="compute-nheritance-source">
|
|
896
902
|
<pre>
|
|
897
|
-
<span class="ruby-comment cmt"># File lib/KeywordDocumentation.rb, line
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
903
|
+
<span class="ruby-comment cmt"># File lib/KeywordDocumentation.rb, line 143</span>
|
|
904
|
+
143: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">computeInheritance</span>(<span class="ruby-identifier">keywords</span>, <span class="ruby-identifier">rules</span>)
|
|
905
|
+
144: <span class="ruby-identifier">property</span> = <span class="ruby-keyword kw">nil</span>
|
|
906
|
+
145: <span class="ruby-ivar">@contexts</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">kwd</span><span class="ruby-operator">|</span>
|
|
907
|
+
146: <span class="ruby-keyword kw">if</span> <span class="ruby-node">%( task resource account report shift scenario)</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">kwd</span>.<span class="ruby-identifier">keyword</span>)
|
|
908
|
+
147: <span class="ruby-identifier">property</span> = <span class="ruby-identifier">kwd</span>.<span class="ruby-identifier">keyword</span>
|
|
909
|
+
148: <span class="ruby-keyword kw">break</span>
|
|
910
|
+
149: <span class="ruby-keyword kw">end</span>
|
|
911
|
+
150: <span class="ruby-keyword kw">end</span>
|
|
912
|
+
151: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">property</span>
|
|
913
|
+
152: <span class="ruby-identifier">project</span> = <span class="ruby-constant">Project</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'id'</span>, <span class="ruby-value str">'dummy'</span>, <span class="ruby-value str">'1.0'</span>, <span class="ruby-keyword kw">nil</span>)
|
|
914
|
+
153: <span class="ruby-identifier">propertySet</span> = <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">property</span>
|
|
915
|
+
154: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'task'</span>
|
|
916
|
+
155: <span class="ruby-identifier">project</span>.<span class="ruby-identifier">tasks</span>
|
|
917
|
+
156: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'resource'</span>
|
|
918
|
+
157: <span class="ruby-identifier">project</span>.<span class="ruby-identifier">resources</span>
|
|
919
|
+
158: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'account'</span>
|
|
920
|
+
159: <span class="ruby-identifier">project</span>.<span class="ruby-identifier">accounts</span>
|
|
921
|
+
160: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'report'</span>
|
|
922
|
+
161: <span class="ruby-identifier">project</span>.<span class="ruby-identifier">reports</span>
|
|
923
|
+
162: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'shift'</span>
|
|
924
|
+
163: <span class="ruby-identifier">project</span>.<span class="ruby-identifier">shifts</span>
|
|
925
|
+
164: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'scenario'</span>
|
|
926
|
+
165: <span class="ruby-identifier">project</span>.<span class="ruby-identifier">scenarios</span>
|
|
927
|
+
166: <span class="ruby-keyword kw">end</span>
|
|
928
|
+
167: <span class="ruby-identifier">keyword</span> = <span class="ruby-ivar">@keyword</span>
|
|
929
|
+
168: <span class="ruby-identifier">keyword</span> = <span class="ruby-identifier">keyword</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">'.'</span>)[<span class="ruby-value">0</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">keyword</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-value str">'.'</span>)
|
|
930
|
+
169: <span class="ruby-ivar">@inheritedFromProject</span> = <span class="ruby-identifier">propertySet</span>.<span class="ruby-identifier">inheritedFromProject?</span>(<span class="ruby-identifier">keyword</span>)
|
|
931
|
+
170: <span class="ruby-ivar">@inheritedFromParent</span> = <span class="ruby-identifier">propertySet</span>.<span class="ruby-identifier">inheritedFromParent?</span>(<span class="ruby-identifier">keyword</span>)
|
|
932
|
+
171: <span class="ruby-keyword kw">end</span>
|
|
933
|
+
172: <span class="ruby-keyword kw">end</span></pre>
|
|
928
934
|
</div>
|
|
929
935
|
|
|
930
936
|
</div>
|
|
@@ -958,50 +964,50 @@ href="KeywordDocumentation.html">KeywordDocumentation</a> items.
|
|
|
958
964
|
<div class="method-source-code"
|
|
959
965
|
id="cross-eference-source">
|
|
960
966
|
<pre>
|
|
961
|
-
<span class="ruby-comment cmt"># File lib/KeywordDocumentation.rb, line
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
967
|
+
<span class="ruby-comment cmt"># File lib/KeywordDocumentation.rb, line 99</span>
|
|
968
|
+
99: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">crossReference</span>(<span class="ruby-identifier">keywords</span>, <span class="ruby-identifier">rules</span>)
|
|
969
|
+
100: <span class="ruby-comment cmt"># Get the attribute or property name of the Keyword. This is not unique</span>
|
|
970
|
+
101: <span class="ruby-comment cmt"># like @keyword since it's got no scope.</span>
|
|
971
|
+
102: <span class="ruby-ivar">@pattern</span>.<span class="ruby-identifier">terminalTokens</span>(<span class="ruby-identifier">rules</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">tok</span><span class="ruby-operator">|</span>
|
|
972
|
+
103: <span class="ruby-comment cmt"># Ignore patterns that don't have a real name.</span>
|
|
973
|
+
104: <span class="ruby-keyword kw">break</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">tok</span>[<span class="ruby-value">0</span>] <span class="ruby-operator">==</span> <span class="ruby-value str">'{'</span>
|
|
974
|
+
105:
|
|
975
|
+
106: <span class="ruby-ivar">@names</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">tok</span>[<span class="ruby-value">0</span>]
|
|
976
|
+
107: <span class="ruby-keyword kw">end</span>
|
|
977
|
+
108:
|
|
978
|
+
109: <span class="ruby-comment cmt"># Some arguments are references to other patterns. The current keyword</span>
|
|
979
|
+
110: <span class="ruby-comment cmt"># is added as context to such patterns.</span>
|
|
980
|
+
111: <span class="ruby-ivar">@args</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">arg</span><span class="ruby-operator">|</span>
|
|
981
|
+
112: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">arg</span>.<span class="ruby-identifier">pattern</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">checkReference</span>(<span class="ruby-identifier">arg</span>.<span class="ruby-identifier">pattern</span>)
|
|
982
|
+
113: <span class="ruby-identifier">kwd</span> = <span class="ruby-identifier">keywords</span>[<span class="ruby-identifier">arg</span>.<span class="ruby-identifier">pattern</span>.<span class="ruby-identifier">keyword</span>]
|
|
983
|
+
114: <span class="ruby-identifier">kwd</span>.<span class="ruby-identifier">contexts</span> <span class="ruby-operator"><<</span> <span class="ruby-keyword kw">self</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">kwd</span>.<span class="ruby-identifier">contexts</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-keyword kw">self</span>)
|
|
984
|
+
115: <span class="ruby-keyword kw">end</span>
|
|
985
|
+
116: <span class="ruby-keyword kw">end</span>
|
|
986
|
+
117:
|
|
987
|
+
118: <span class="ruby-comment cmt"># Optional attributes are treated similarly. In addition we add them to</span>
|
|
988
|
+
119: <span class="ruby-comment cmt"># the @optionalAttributes list of this keyword.</span>
|
|
989
|
+
120: <span class="ruby-ivar">@optAttrPatterns</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">pattern</span>, <span class="ruby-identifier">scenarioSpecific</span><span class="ruby-operator">|</span>
|
|
990
|
+
121: <span class="ruby-keyword kw">next</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">checkReference</span>(<span class="ruby-identifier">pattern</span>)
|
|
991
|
+
122:
|
|
992
|
+
123: <span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">kwd</span> = <span class="ruby-identifier">keywords</span>[<span class="ruby-identifier">pattern</span>.<span class="ruby-identifier">keyword</span>]).<span class="ruby-identifier">nil?</span>
|
|
993
|
+
124: <span class="ruby-identifier">token</span> = <span class="ruby-identifier">pattern</span>.<span class="ruby-identifier">terminalToken</span>(<span class="ruby-identifier">rules</span>)
|
|
994
|
+
125: <span class="ruby-identifier">$stderr</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">"Keyword #{keyword} has undocumented optional "</span> <span class="ruby-operator">+</span>
|
|
995
|
+
126: <span class="ruby-node">"attribute #{token[0]}"</span>
|
|
996
|
+
127: <span class="ruby-keyword kw">else</span>
|
|
997
|
+
128: <span class="ruby-ivar">@optionalAttributes</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">kwd</span>
|
|
998
|
+
129: <span class="ruby-identifier">kwd</span>.<span class="ruby-identifier">contexts</span> <span class="ruby-operator"><<</span> <span class="ruby-keyword kw">self</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">kwd</span>.<span class="ruby-identifier">contexts</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-keyword kw">self</span>)
|
|
999
|
+
130: <span class="ruby-identifier">kwd</span>.<span class="ruby-identifier">scenarioSpecific</span> = <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">scenarioSpecific</span>
|
|
1000
|
+
131: <span class="ruby-keyword kw">end</span>
|
|
1001
|
+
132: <span class="ruby-keyword kw">end</span>
|
|
1002
|
+
133:
|
|
1003
|
+
134: <span class="ruby-comment cmt"># Resolve the seeAlso patterns to keyword references.</span>
|
|
1004
|
+
135: <span class="ruby-ivar">@pattern</span>.<span class="ruby-identifier">seeAlso</span>.<span class="ruby-identifier">sort</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">also</span><span class="ruby-operator">|</span>
|
|
1005
|
+
136: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">keywords</span>[<span class="ruby-identifier">also</span>].<span class="ruby-identifier">nil?</span>
|
|
1006
|
+
137: <span class="ruby-identifier">raise</span> <span class="ruby-node">"See also reference #{also} of #{@pattern} is unknown"</span>
|
|
1007
|
+
138: <span class="ruby-keyword kw">end</span>
|
|
1008
|
+
139: <span class="ruby-ivar">@seeAlso</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">keywords</span>[<span class="ruby-identifier">also</span>]
|
|
1009
|
+
140: <span class="ruby-keyword kw">end</span>
|
|
1010
|
+
141: <span class="ruby-keyword kw">end</span></pre>
|
|
1005
1011
|
</div>
|
|
1006
1012
|
|
|
1007
1013
|
</div>
|
|
@@ -1035,204 +1041,207 @@ documentation in an XML formatted form.
|
|
|
1035
1041
|
<div class="method-source-code"
|
|
1036
1042
|
id="generate--source">
|
|
1037
1043
|
<pre>
|
|
1038
|
-
<span class="ruby-comment cmt"># File lib/KeywordDocumentation.rb, line
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
385: <span class="ruby-keyword kw">else</span>
|
|
1044
|
+
<span class="ruby-comment cmt"># File lib/KeywordDocumentation.rb, line 306</span>
|
|
1045
|
+
306: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">generateHTML</span>(<span class="ruby-identifier">directory</span>)
|
|
1046
|
+
307: <span class="ruby-identifier">html</span> = <span class="ruby-constant">HTMLDocument</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:strict</span>)
|
|
1047
|
+
308: <span class="ruby-identifier">head</span> = <span class="ruby-identifier">html</span>.<span class="ruby-identifier">generateHead</span>(<span class="ruby-identifier">keyword</span>,
|
|
1048
|
+
309: { <span class="ruby-value str">'description'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'The TaskJuggler Manual'</span>,
|
|
1049
|
+
310: <span class="ruby-value str">'keywords'</span> =<span class="ruby-operator">></span>
|
|
1050
|
+
311: <span class="ruby-value str">'taskjuggler, project, management'</span> })
|
|
1051
|
+
312: <span class="ruby-identifier">head</span> <span class="ruby-operator"><<</span> <span class="ruby-ivar">@manual</span>.<span class="ruby-identifier">generateStyleSheet</span>
|
|
1052
|
+
313:
|
|
1053
|
+
314: <span class="ruby-identifier">html</span> <span class="ruby-operator"><<</span> (<span class="ruby-identifier">body</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'body'</span>))
|
|
1054
|
+
315: <span class="ruby-identifier">body</span> <span class="ruby-operator"><<</span> <span class="ruby-ivar">@manual</span>.<span class="ruby-identifier">generateHTMLHeader</span> <span class="ruby-operator"><<</span>
|
|
1055
|
+
316: <span class="ruby-identifier">generateHTMLNavigationBar</span>
|
|
1056
|
+
317:
|
|
1057
|
+
318: <span class="ruby-comment cmt"># Box with keyword name.</span>
|
|
1058
|
+
319: <span class="ruby-identifier">body</span> <span class="ruby-operator"><<</span> (<span class="ruby-identifier">bbox</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'div'</span>,
|
|
1059
|
+
320: <span class="ruby-value str">'style'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'margin-left:5%; margin-right:5%'</span>))
|
|
1060
|
+
321: <span class="ruby-identifier">bbox</span> <span class="ruby-operator"><<</span> (<span class="ruby-identifier">p</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'p'</span>))
|
|
1061
|
+
322: <span class="ruby-identifier">p</span> <span class="ruby-operator"><<</span> (<span class="ruby-identifier">tab</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'table'</span>, <span class="ruby-value str">'align'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'center'</span>,
|
|
1062
|
+
323: <span class="ruby-value str">'class'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'table'</span>))
|
|
1063
|
+
324:
|
|
1064
|
+
325: <span class="ruby-identifier">tab</span> <span class="ruby-operator"><<</span> (<span class="ruby-identifier">tr</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'tr'</span>, <span class="ruby-value str">'align'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'left'</span>))
|
|
1065
|
+
326: <span class="ruby-identifier">tr</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">XMLNamedText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'Keyword'</span>, <span class="ruby-value str">'td'</span>, <span class="ruby-value str">'class'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'tag'</span>,
|
|
1066
|
+
327: <span class="ruby-value str">'style'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'width:15%'</span>)
|
|
1067
|
+
328: <span class="ruby-identifier">tr</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">XMLNamedText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">title</span>, <span class="ruby-value str">'td'</span>, <span class="ruby-value str">'class'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'descr'</span>,
|
|
1068
|
+
329: <span class="ruby-value str">'style'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'width:85%; font-weight:bold'</span>)
|
|
1069
|
+
330:
|
|
1070
|
+
331: <span class="ruby-comment cmt"># Box with purpose, syntax, arguments and context.</span>
|
|
1071
|
+
332: <span class="ruby-identifier">bbox</span> <span class="ruby-operator"><<</span> (<span class="ruby-identifier">p</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'p'</span>))
|
|
1072
|
+
333: <span class="ruby-identifier">p</span> <span class="ruby-operator"><<</span> (<span class="ruby-identifier">tab</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'table'</span>, <span class="ruby-value str">'align'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'center'</span>,
|
|
1073
|
+
334: <span class="ruby-value str">'class'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'table'</span>))
|
|
1074
|
+
335: <span class="ruby-identifier">tab</span> <span class="ruby-operator"><<</span> (<span class="ruby-identifier">colgroup</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'colgroup'</span>))
|
|
1075
|
+
336: <span class="ruby-identifier">colgroup</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'col'</span>, <span class="ruby-value str">'width'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'15%'</span>)
|
|
1076
|
+
337: <span class="ruby-identifier">colgroup</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'col'</span>, <span class="ruby-value str">'width'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'85%'</span>)
|
|
1077
|
+
338:
|
|
1078
|
+
339: <span class="ruby-identifier">tab</span> <span class="ruby-operator"><<</span> (<span class="ruby-identifier">tr</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'tr'</span>, <span class="ruby-value str">'align'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'left'</span>))
|
|
1079
|
+
340: <span class="ruby-identifier">tr</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">XMLNamedText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'Purpose'</span>, <span class="ruby-value str">'td'</span>, <span class="ruby-value str">'class'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'tag'</span>)
|
|
1080
|
+
341: <span class="ruby-identifier">tr</span> <span class="ruby-operator"><<</span> (<span class="ruby-identifier">td</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'td'</span>, <span class="ruby-value str">'class'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'descr'</span>))
|
|
1081
|
+
342: <span class="ruby-identifier">td</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">newRichText</span>(<span class="ruby-ivar">@pattern</span>.<span class="ruby-identifier">doc</span>).<span class="ruby-identifier">to_html</span>
|
|
1082
|
+
343: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@syntax</span> <span class="ruby-operator">!=</span> <span class="ruby-value str">'[{ <attributes> }]'</span>
|
|
1083
|
+
344: <span class="ruby-identifier">tab</span> <span class="ruby-operator"><<</span> (<span class="ruby-identifier">tr</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'tr'</span>, <span class="ruby-value str">'align'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'left'</span>))
|
|
1084
|
+
345: <span class="ruby-identifier">tr</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">XMLNamedText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'Syntax'</span>, <span class="ruby-value str">'td'</span>, <span class="ruby-value str">'class'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'tag'</span>)
|
|
1085
|
+
346: <span class="ruby-identifier">tr</span> <span class="ruby-operator"><<</span> (<span class="ruby-identifier">td</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'td'</span>, <span class="ruby-value str">'class'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'descr'</span>))
|
|
1086
|
+
347: <span class="ruby-identifier">td</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">XMLNamedText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">"#{@syntax}"</span>, <span class="ruby-value str">'code'</span>)
|
|
1087
|
+
348:
|
|
1088
|
+
349: <span class="ruby-identifier">tab</span> <span class="ruby-operator"><<</span> (<span class="ruby-identifier">tr</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'tr'</span>, <span class="ruby-value str">'align'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'left'</span>))
|
|
1089
|
+
350: <span class="ruby-identifier">tr</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">XMLNamedText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'Arguments'</span>, <span class="ruby-value str">'td'</span>, <span class="ruby-value str">'class'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'tag'</span>)
|
|
1090
|
+
351: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@args</span>.<span class="ruby-identifier">empty?</span>
|
|
1091
|
+
352: <span class="ruby-identifier">tr</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">XMLNamedText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'none'</span>, <span class="ruby-value str">'td'</span>, <span class="ruby-value str">'class'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'descr'</span>)
|
|
1092
|
+
353: <span class="ruby-keyword kw">else</span>
|
|
1093
|
+
354: <span class="ruby-identifier">tr</span> <span class="ruby-operator"><<</span> (<span class="ruby-identifier">td</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'td'</span>))
|
|
1094
|
+
355: <span class="ruby-identifier">td</span> <span class="ruby-operator"><<</span> (<span class="ruby-identifier">tab1</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'table'</span>, <span class="ruby-value str">'class'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'attrtable'</span>,
|
|
1095
|
+
356: <span class="ruby-value str">'style'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'width:100%;'</span>))
|
|
1096
|
+
357: <span class="ruby-ivar">@args</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">arg</span><span class="ruby-operator">|</span>
|
|
1097
|
+
358: <span class="ruby-identifier">tab1</span> <span class="ruby-operator"><<</span> (<span class="ruby-identifier">tr1</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'tr'</span>))
|
|
1098
|
+
359: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">arg</span>.<span class="ruby-identifier">typeSpec</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> (<span class="ruby-value str">'<'</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">arg</span>.<span class="ruby-identifier">name</span> <span class="ruby-operator">+</span> <span class="ruby-value str">'>'</span>) <span class="ruby-operator">==</span> <span class="ruby-identifier">arg</span>.<span class="ruby-identifier">typeSpec</span>
|
|
1099
|
+
360: <span class="ruby-identifier">tr1</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">XMLNamedText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">"#{arg.name}"</span>, <span class="ruby-value str">'td'</span>, <span class="ruby-value str">'class'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'attrtag'</span>,
|
|
1100
|
+
361: <span class="ruby-value str">'width'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'30%'</span>)
|
|
1101
|
+
362: <span class="ruby-keyword kw">else</span>
|
|
1102
|
+
363: <span class="ruby-identifier">typeSpec</span> = <span class="ruby-identifier">arg</span>.<span class="ruby-identifier">typeSpec</span>
|
|
1103
|
+
364: <span class="ruby-identifier">typeName</span> = <span class="ruby-identifier">typeSpec</span>[<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">2</span>]
|
|
1104
|
+
365: <span class="ruby-identifier">typeSpec</span>[<span class="ruby-value">0</span>] = <span class="ruby-value str">'['</span>
|
|
1105
|
+
366: <span class="ruby-identifier">typeSpec</span>[<span class="ruby-value">1</span>] = <span class="ruby-value str">']'</span>
|
|
1106
|
+
367: <span class="ruby-identifier">tr1</span> <span class="ruby-operator"><<</span> (<span class="ruby-identifier">td</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'td'</span>, <span class="ruby-value str">'class'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'attrtag'</span>,
|
|
1107
|
+
368: <span class="ruby-value str">'width'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'30%'</span>))
|
|
1108
|
+
369: <span class="ruby-identifier">td</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">XMLText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">"#{arg.name} ["</span>)
|
|
1109
|
+
370: <span class="ruby-identifier">td</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">XMLNamedText</span>.<span class="ruby-identifier">new</span>(
|
|
1110
|
+
371: <span class="ruby-identifier">typeName</span>, <span class="ruby-value str">'a'</span>, <span class="ruby-value str">'href'</span> =<span class="ruby-operator">></span>
|
|
1111
|
+
372: <span class="ruby-node">"The_TaskJuggler_Syntax.html\##{typeName}"</span>)
|
|
1112
|
+
373: <span class="ruby-identifier">td</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">XMLText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">']'</span>)
|
|
1113
|
+
374: <span class="ruby-keyword kw">end</span>
|
|
1114
|
+
375: <span class="ruby-identifier">tr1</span> <span class="ruby-operator"><<</span> (<span class="ruby-identifier">td</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'td'</span>, <span class="ruby-value str">'class'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'attrdescr'</span>,
|
|
1115
|
+
376: <span class="ruby-value str">'style'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'margin-top:2px; margin-bottom:2px;'</span>))
|
|
1116
|
+
377: <span class="ruby-identifier">td</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">newRichText</span>(<span class="ruby-identifier">arg</span>.<span class="ruby-identifier">text</span> <span class="ruby-operator">||</span>
|
|
1117
|
+
378: <span class="ruby-node">"See [[#{arg.name}]] for details."</span>).<span class="ruby-identifier">to_html</span>
|
|
1118
|
+
379: <span class="ruby-keyword kw">end</span>
|
|
1119
|
+
380: <span class="ruby-keyword kw">end</span>
|
|
1120
|
+
381: <span class="ruby-keyword kw">end</span>
|
|
1121
|
+
382:
|
|
1122
|
+
383: <span class="ruby-identifier">tab</span> <span class="ruby-operator"><<</span> (<span class="ruby-identifier">tr</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'tr'</span>, <span class="ruby-value str">'align'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'left'</span>))
|
|
1123
|
+
384: <span class="ruby-identifier">tr</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">XMLNamedText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'Context'</span>, <span class="ruby-value str">'td'</span>, <span class="ruby-value str">'class'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'tag'</span>)
|
|
1124
|
+
385: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@contexts</span>.<span class="ruby-identifier">empty?</span>
|
|
1120
1125
|
386: <span class="ruby-identifier">tr</span> <span class="ruby-operator"><<</span> (<span class="ruby-identifier">td</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'td'</span>, <span class="ruby-value str">'class'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'descr'</span>))
|
|
1121
|
-
387: <span class="ruby-identifier">
|
|
1122
|
-
388:
|
|
1123
|
-
389:
|
|
1124
|
-
390:
|
|
1125
|
-
391:
|
|
1126
|
-
392:
|
|
1127
|
-
393: <span class="ruby-keyword kw">
|
|
1128
|
-
394:
|
|
1129
|
-
395:
|
|
1130
|
-
396:
|
|
1131
|
-
397:
|
|
1132
|
-
398:
|
|
1133
|
-
399: <span class="ruby-
|
|
1134
|
-
400:
|
|
1135
|
-
401:
|
|
1136
|
-
402:
|
|
1137
|
-
403: <span class="ruby-
|
|
1138
|
-
404:
|
|
1139
|
-
405:
|
|
1140
|
-
406:
|
|
1141
|
-
407:
|
|
1142
|
-
408: <span class="ruby-keyword kw">
|
|
1143
|
-
409:
|
|
1144
|
-
410:
|
|
1145
|
-
411:
|
|
1146
|
-
412:
|
|
1147
|
-
413:
|
|
1148
|
-
414:
|
|
1149
|
-
415:
|
|
1150
|
-
416:
|
|
1151
|
-
417:
|
|
1152
|
-
418:
|
|
1153
|
-
419: <span class="ruby-identifier">
|
|
1154
|
-
420:
|
|
1155
|
-
421:
|
|
1156
|
-
422:
|
|
1157
|
-
423:
|
|
1158
|
-
424:
|
|
1159
|
-
425: <span class="ruby-keyword kw">
|
|
1160
|
-
426:
|
|
1161
|
-
427:
|
|
1162
|
-
428:
|
|
1163
|
-
429:
|
|
1164
|
-
430:
|
|
1165
|
-
431:
|
|
1166
|
-
432: <span class="ruby-
|
|
1167
|
-
433:
|
|
1168
|
-
434:
|
|
1169
|
-
435:
|
|
1170
|
-
436:
|
|
1171
|
-
437:
|
|
1172
|
-
438:
|
|
1173
|
-
439: <span class="ruby-identifier">tr</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">XMLNamedText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'
|
|
1174
|
-
440: <span class="ruby-value str">'
|
|
1175
|
-
441:
|
|
1126
|
+
387: <span class="ruby-identifier">td</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">XMLNamedText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'Global scope'</span>, <span class="ruby-value str">'a'</span>,
|
|
1127
|
+
388: <span class="ruby-value str">'href'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'Getting_Started.html#Structure_of_a_TJP_File'</span>)
|
|
1128
|
+
389: <span class="ruby-keyword kw">else</span>
|
|
1129
|
+
390: <span class="ruby-identifier">tr</span> <span class="ruby-operator"><<</span> (<span class="ruby-identifier">td</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'td'</span>, <span class="ruby-value str">'class'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'descr'</span>))
|
|
1130
|
+
391: <span class="ruby-identifier">first</span> = <span class="ruby-keyword kw">true</span>
|
|
1131
|
+
392: <span class="ruby-ivar">@contexts</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">context</span><span class="ruby-operator">|</span>
|
|
1132
|
+
393: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">first</span>
|
|
1133
|
+
394: <span class="ruby-identifier">first</span> = <span class="ruby-keyword kw">false</span>
|
|
1134
|
+
395: <span class="ruby-keyword kw">else</span>
|
|
1135
|
+
396: <span class="ruby-identifier">td</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">XMLText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">', '</span>)
|
|
1136
|
+
397: <span class="ruby-keyword kw">end</span>
|
|
1137
|
+
398: <span class="ruby-identifier">keywordHTMLRef</span>(<span class="ruby-identifier">td</span>, <span class="ruby-identifier">context</span>)
|
|
1138
|
+
399: <span class="ruby-keyword kw">end</span>
|
|
1139
|
+
400: <span class="ruby-keyword kw">end</span>
|
|
1140
|
+
401:
|
|
1141
|
+
402: <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@seeAlso</span>.<span class="ruby-identifier">empty?</span>
|
|
1142
|
+
403: <span class="ruby-identifier">tab</span> <span class="ruby-operator"><<</span> (<span class="ruby-identifier">tr</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'tr'</span>, <span class="ruby-value str">'align'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'left'</span>))
|
|
1143
|
+
404: <span class="ruby-identifier">tr</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">XMLNamedText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'See also'</span>, <span class="ruby-value str">'td'</span>, <span class="ruby-value str">'class'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'tag'</span>)
|
|
1144
|
+
405: <span class="ruby-identifier">first</span> = <span class="ruby-keyword kw">true</span>
|
|
1145
|
+
406: <span class="ruby-identifier">tr</span> <span class="ruby-operator"><<</span> (<span class="ruby-identifier">td</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'td'</span>, <span class="ruby-value str">'class'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'descr'</span>))
|
|
1146
|
+
407: <span class="ruby-ivar">@seeAlso</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">also</span><span class="ruby-operator">|</span>
|
|
1147
|
+
408: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">first</span>
|
|
1148
|
+
409: <span class="ruby-identifier">first</span> = <span class="ruby-keyword kw">false</span>
|
|
1149
|
+
410: <span class="ruby-keyword kw">else</span>
|
|
1150
|
+
411: <span class="ruby-identifier">td</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">XMLText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">', '</span>)
|
|
1151
|
+
412: <span class="ruby-keyword kw">end</span>
|
|
1152
|
+
413: <span class="ruby-identifier">keywordHTMLRef</span>(<span class="ruby-identifier">td</span>, <span class="ruby-identifier">also</span>)
|
|
1153
|
+
414: <span class="ruby-keyword kw">end</span>
|
|
1154
|
+
415: <span class="ruby-keyword kw">end</span>
|
|
1155
|
+
416:
|
|
1156
|
+
417: <span class="ruby-comment cmt"># Box with attributes.</span>
|
|
1157
|
+
418: <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@optionalAttributes</span>.<span class="ruby-identifier">empty?</span>
|
|
1158
|
+
419: <span class="ruby-ivar">@optionalAttributes</span>.<span class="ruby-identifier">sort!</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">a</span>, <span class="ruby-identifier">b</span><span class="ruby-operator">|</span>
|
|
1159
|
+
420: <span class="ruby-identifier">a</span>.<span class="ruby-identifier">keyword</span> <span class="ruby-operator"><=></span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">keyword</span>
|
|
1160
|
+
421: <span class="ruby-keyword kw">end</span>
|
|
1161
|
+
422:
|
|
1162
|
+
423: <span class="ruby-identifier">showDetails</span> = <span class="ruby-keyword kw">false</span>
|
|
1163
|
+
424: <span class="ruby-ivar">@optionalAttributes</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">attr</span><span class="ruby-operator">|</span>
|
|
1164
|
+
425: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">attr</span>.<span class="ruby-identifier">scenarioSpecific</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">attr</span>.<span class="ruby-identifier">inheritedFromProject</span> <span class="ruby-operator">||</span>
|
|
1165
|
+
426: <span class="ruby-identifier">attr</span>.<span class="ruby-identifier">inheritedFromParent</span>
|
|
1166
|
+
427: <span class="ruby-identifier">showDetails</span> = <span class="ruby-keyword kw">true</span>
|
|
1167
|
+
428: <span class="ruby-keyword kw">break</span>
|
|
1168
|
+
429: <span class="ruby-keyword kw">end</span>
|
|
1169
|
+
430: <span class="ruby-keyword kw">end</span>
|
|
1170
|
+
431:
|
|
1171
|
+
432: <span class="ruby-identifier">bbox</span> <span class="ruby-operator"><<</span> (<span class="ruby-identifier">p</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'p'</span>))
|
|
1172
|
+
433: <span class="ruby-identifier">p</span> <span class="ruby-operator"><<</span> (<span class="ruby-identifier">tab</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'table'</span>, <span class="ruby-value str">'align'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'center'</span>,
|
|
1173
|
+
434: <span class="ruby-value str">'class'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'table'</span>))
|
|
1174
|
+
435: <span class="ruby-identifier">tab</span> <span class="ruby-operator"><<</span> (<span class="ruby-identifier">tr</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'tr'</span>, <span class="ruby-value str">'align'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'left'</span>))
|
|
1175
|
+
436: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">showDetails</span>
|
|
1176
|
+
437: <span class="ruby-comment cmt"># Table of all attributes with checkmarks for being scenario</span>
|
|
1177
|
+
438: <span class="ruby-comment cmt"># specific, inherited from parent and inherited from global scope.</span>
|
|
1178
|
+
439: <span class="ruby-identifier">tr</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">XMLNamedText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'Attributes'</span>, <span class="ruby-value str">'td'</span>, <span class="ruby-value str">'class'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'tag'</span>,
|
|
1179
|
+
440: <span class="ruby-value str">'rowspan'</span> =<span class="ruby-operator">></span>
|
|
1180
|
+
441: <span class="ruby-node">"#{@optionalAttributes.length + 1}"</span>,
|
|
1176
1181
|
442: <span class="ruby-value str">'style'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'width:15%'</span>)
|
|
1177
|
-
443: <span class="ruby-identifier">tr</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">XMLNamedText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'
|
|
1178
|
-
444: <span class="ruby-value str">'style'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'width:
|
|
1179
|
-
445: <span class="ruby-identifier">tr</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">XMLNamedText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'
|
|
1182
|
+
443: <span class="ruby-identifier">tr</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">XMLNamedText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'Name'</span>, <span class="ruby-value str">'td'</span>, <span class="ruby-value str">'class'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'tag'</span>,
|
|
1183
|
+
444: <span class="ruby-value str">'style'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'width:40%'</span>)
|
|
1184
|
+
445: <span class="ruby-identifier">tr</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">XMLNamedText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'Scen. spec.'</span>, <span class="ruby-value str">'td'</span>, <span class="ruby-value str">'class'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'tag'</span>,
|
|
1180
1185
|
446: <span class="ruby-value str">'style'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'width:15%'</span>)
|
|
1181
|
-
447: <span class="ruby-
|
|
1182
|
-
448:
|
|
1183
|
-
449:
|
|
1184
|
-
450:
|
|
1185
|
-
451:
|
|
1186
|
-
452:
|
|
1187
|
-
453: <span class="ruby-identifier">
|
|
1188
|
-
454: <span class="ruby-identifier">
|
|
1189
|
-
455:
|
|
1190
|
-
456:
|
|
1191
|
-
457: <span class="ruby-identifier">
|
|
1192
|
-
458:
|
|
1193
|
-
459:
|
|
1194
|
-
460:
|
|
1195
|
-
461:
|
|
1196
|
-
462:
|
|
1197
|
-
463:
|
|
1198
|
-
464:
|
|
1199
|
-
465:
|
|
1200
|
-
466:
|
|
1201
|
-
467: <span class="ruby-identifier">
|
|
1202
|
-
468:
|
|
1203
|
-
469:
|
|
1204
|
-
470:
|
|
1205
|
-
471:
|
|
1206
|
-
472:
|
|
1207
|
-
473: <span class="ruby-keyword kw">
|
|
1208
|
-
474:
|
|
1209
|
-
475:
|
|
1210
|
-
476:
|
|
1211
|
-
477:
|
|
1212
|
-
478:
|
|
1213
|
-
479:
|
|
1214
|
-
480: <span class="ruby-
|
|
1215
|
-
481:
|
|
1216
|
-
482:
|
|
1217
|
-
483:
|
|
1218
|
-
484: <span class="ruby-identifier">
|
|
1219
|
-
485: <span class="ruby-identifier">
|
|
1220
|
-
486: <span class="ruby-
|
|
1221
|
-
487:
|
|
1222
|
-
488:
|
|
1223
|
-
489: <span class="ruby-
|
|
1224
|
-
490: <span class="ruby-
|
|
1225
|
-
491:
|
|
1226
|
-
492:
|
|
1227
|
-
493:
|
|
1228
|
-
494:
|
|
1229
|
-
495:
|
|
1230
|
-
496:
|
|
1231
|
-
497:
|
|
1232
|
-
498: <span class="ruby-
|
|
1233
|
-
499:
|
|
1234
|
-
500: <span class="ruby-keyword kw">
|
|
1235
|
-
501:
|
|
1186
|
+
447: <span class="ruby-identifier">tr</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">XMLNamedText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'Inh. fm. Global'</span>, <span class="ruby-value str">'td'</span>, <span class="ruby-value str">'class'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'tag'</span>,
|
|
1187
|
+
448: <span class="ruby-value str">'style'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'width:15%'</span>)
|
|
1188
|
+
449: <span class="ruby-identifier">tr</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">XMLNamedText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'Inh. fm. Parent'</span>, <span class="ruby-value str">'td'</span>, <span class="ruby-value str">'class'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'tag'</span>,
|
|
1189
|
+
450: <span class="ruby-value str">'style'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'width:15%'</span>)
|
|
1190
|
+
451: <span class="ruby-ivar">@optionalAttributes</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">attr</span><span class="ruby-operator">|</span>
|
|
1191
|
+
452: <span class="ruby-identifier">tab</span> <span class="ruby-operator"><<</span> (<span class="ruby-identifier">tr</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'tr'</span>, <span class="ruby-value str">'align'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'left'</span>))
|
|
1192
|
+
453: <span class="ruby-identifier">tr</span> <span class="ruby-operator"><<</span> (<span class="ruby-identifier">td</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'td'</span>, <span class="ruby-value str">'class'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'descr'</span>))
|
|
1193
|
+
454: <span class="ruby-identifier">keywordHTMLRef</span>(<span class="ruby-identifier">td</span>, <span class="ruby-identifier">attr</span>)
|
|
1194
|
+
455: <span class="ruby-identifier">tr</span> <span class="ruby-operator"><<</span> (<span class="ruby-identifier">td</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'td'</span>, <span class="ruby-value str">'align'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'center'</span>,
|
|
1195
|
+
456: <span class="ruby-value str">'class'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'descr'</span>))
|
|
1196
|
+
457: <span class="ruby-identifier">td</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">XMLText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'x'</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">attr</span>.<span class="ruby-identifier">scenarioSpecific</span>
|
|
1197
|
+
458: <span class="ruby-identifier">tr</span> <span class="ruby-operator"><<</span> (<span class="ruby-identifier">td</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'td'</span>, <span class="ruby-value str">'align'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'center'</span>,
|
|
1198
|
+
459: <span class="ruby-value str">'class'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'descr'</span>))
|
|
1199
|
+
460: <span class="ruby-identifier">td</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">XMLText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'x'</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">attr</span>.<span class="ruby-identifier">inheritedFromProject</span>
|
|
1200
|
+
461: <span class="ruby-identifier">tr</span> <span class="ruby-operator"><<</span> (<span class="ruby-identifier">td</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'td'</span>, <span class="ruby-value str">'align'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'center'</span>,
|
|
1201
|
+
462: <span class="ruby-value str">'class'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'descr'</span>))
|
|
1202
|
+
463: <span class="ruby-identifier">td</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">XMLText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'x'</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">attr</span>.<span class="ruby-identifier">inheritedFromParent</span>
|
|
1203
|
+
464: <span class="ruby-keyword kw">end</span>
|
|
1204
|
+
465: <span class="ruby-keyword kw">else</span>
|
|
1205
|
+
466: <span class="ruby-comment cmt"># Comma separated list of all attributes.</span>
|
|
1206
|
+
467: <span class="ruby-identifier">tr</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">XMLNamedText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'Attributes'</span>, <span class="ruby-value str">'td'</span>, <span class="ruby-value str">'class'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'tag'</span>,
|
|
1207
|
+
468: <span class="ruby-value str">'style'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'width:15%'</span>)
|
|
1208
|
+
469: <span class="ruby-identifier">tr</span> <span class="ruby-operator"><<</span> (<span class="ruby-identifier">td</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'td'</span>, <span class="ruby-value str">'class'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'descr'</span>,
|
|
1209
|
+
470: <span class="ruby-value str">'style'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'width:85%'</span>))
|
|
1210
|
+
471: <span class="ruby-identifier">first</span> = <span class="ruby-keyword kw">true</span>
|
|
1211
|
+
472: <span class="ruby-ivar">@optionalAttributes</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">attr</span><span class="ruby-operator">|</span>
|
|
1212
|
+
473: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">first</span>
|
|
1213
|
+
474: <span class="ruby-identifier">first</span> = <span class="ruby-keyword kw">false</span>
|
|
1214
|
+
475: <span class="ruby-keyword kw">else</span>
|
|
1215
|
+
476: <span class="ruby-identifier">td</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">XMLText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">', '</span>)
|
|
1216
|
+
477: <span class="ruby-keyword kw">end</span>
|
|
1217
|
+
478: <span class="ruby-identifier">keywordHTMLRef</span>(<span class="ruby-identifier">td</span>, <span class="ruby-identifier">attr</span>)
|
|
1218
|
+
479: <span class="ruby-keyword kw">end</span>
|
|
1219
|
+
480: <span class="ruby-keyword kw">end</span>
|
|
1220
|
+
481: <span class="ruby-keyword kw">end</span>
|
|
1221
|
+
482:
|
|
1222
|
+
483: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@pattern</span>.<span class="ruby-identifier">exampleFile</span>
|
|
1223
|
+
484: <span class="ruby-identifier">exampleDir</span> = <span class="ruby-constant">AppConfig</span>.<span class="ruby-identifier">dataDirs</span>(<span class="ruby-value str">'test'</span>)[<span class="ruby-value">0</span>] <span class="ruby-operator">+</span> <span class="ruby-value str">"TestSuite/Syntax/Correct/"</span>
|
|
1224
|
+
485: <span class="ruby-identifier">example</span> = <span class="ruby-constant">TjpExample</span>.<span class="ruby-identifier">new</span>
|
|
1225
|
+
486: <span class="ruby-identifier">fileName</span> = <span class="ruby-node">"#{exampleDir}/#{@pattern.exampleFile}.tjp"</span>
|
|
1226
|
+
487: <span class="ruby-identifier">example</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">fileName</span>)
|
|
1227
|
+
488: <span class="ruby-identifier">bbox</span> <span class="ruby-operator"><<</span> (<span class="ruby-identifier">frame</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'div'</span>, <span class="ruby-value str">'class'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'codeframe'</span>))
|
|
1228
|
+
489: <span class="ruby-identifier">frame</span> <span class="ruby-operator"><<</span> (<span class="ruby-identifier">pre</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'pre'</span>, <span class="ruby-value str">'class'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'code'</span>))
|
|
1229
|
+
490: <span class="ruby-keyword kw">unless</span> (<span class="ruby-identifier">text</span> = <span class="ruby-identifier">example</span>.<span class="ruby-identifier">to_s</span>(<span class="ruby-ivar">@pattern</span>.<span class="ruby-identifier">exampleTag</span>))
|
|
1230
|
+
491: <span class="ruby-identifier">raise</span> <span class="ruby-node">"There is no tag '#{@pattern.exampleTag}' in file "</span> <span class="ruby-operator">+</span>
|
|
1231
|
+
492: <span class="ruby-node">"#{fileName}."</span>
|
|
1232
|
+
493: <span class="ruby-keyword kw">end</span>
|
|
1233
|
+
494: <span class="ruby-identifier">pre</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">XMLText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">text</span>)
|
|
1234
|
+
495: <span class="ruby-keyword kw">end</span>
|
|
1235
|
+
496:
|
|
1236
|
+
497: <span class="ruby-identifier">body</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">generateHTMLNavigationBar</span>
|
|
1237
|
+
498: <span class="ruby-identifier">body</span> <span class="ruby-operator"><<</span> <span class="ruby-ivar">@manual</span>.<span class="ruby-identifier">generateHTMLFooter</span>
|
|
1238
|
+
499:
|
|
1239
|
+
500: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">directory</span>
|
|
1240
|
+
501: <span class="ruby-identifier">html</span>.<span class="ruby-identifier">write</span>(<span class="ruby-identifier">directory</span> <span class="ruby-operator">+</span> <span class="ruby-node">"#{keyword}.html"</span>)
|
|
1241
|
+
502: <span class="ruby-keyword kw">else</span>
|
|
1242
|
+
503: <span class="ruby-identifier">puts</span> <span class="ruby-identifier">html</span>.<span class="ruby-identifier">to_s</span>
|
|
1243
|
+
504: <span class="ruby-keyword kw">end</span>
|
|
1244
|
+
505: <span class="ruby-keyword kw">end</span></pre>
|
|
1236
1245
|
</div>
|
|
1237
1246
|
|
|
1238
1247
|
</div>
|
|
@@ -1266,14 +1275,14 @@ context.
|
|
|
1266
1275
|
<div class="method-source-code"
|
|
1267
1276
|
id="global-cope--source">
|
|
1268
1277
|
<pre>
|
|
1269
|
-
<span class="ruby-comment cmt"># File lib/KeywordDocumentation.rb, line
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1278
|
+
<span class="ruby-comment cmt"># File lib/KeywordDocumentation.rb, line 89</span>
|
|
1279
|
+
89: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">globalScope?</span>
|
|
1280
|
+
90: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@contexts</span>.<span class="ruby-identifier">empty?</span>
|
|
1281
|
+
91: <span class="ruby-ivar">@contexts</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">context</span><span class="ruby-operator">|</span>
|
|
1282
|
+
92: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">context</span>.<span class="ruby-identifier">keyword</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'properties'</span>
|
|
1283
|
+
93: <span class="ruby-keyword kw">end</span>
|
|
1284
|
+
94: <span class="ruby-keyword kw">false</span>
|
|
1285
|
+
95: <span class="ruby-keyword kw">end</span></pre>
|
|
1277
1286
|
</div>
|
|
1278
1287
|
|
|
1279
1288
|
</div>
|
|
@@ -1308,15 +1317,15 @@ TJP property (task, resources, etc.). A TJP property can be nested.
|
|
|
1308
1317
|
<div class="method-source-code"
|
|
1309
1318
|
id="is-roperty--source">
|
|
1310
1319
|
<pre>
|
|
1311
|
-
<span class="ruby-comment cmt"># File lib/KeywordDocumentation.rb, line
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
+
<span class="ruby-comment cmt"># File lib/KeywordDocumentation.rb, line 78</span>
|
|
1321
|
+
78: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">isProperty?</span>
|
|
1322
|
+
79: <span class="ruby-comment cmt"># I haven't found a good way to automatically detect all the various</span>
|
|
1323
|
+
80: <span class="ruby-comment cmt"># report types as properties. The non-nestable ones need to be added</span>
|
|
1324
|
+
81: <span class="ruby-comment cmt"># manually here.</span>
|
|
1325
|
+
82: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">if</span> <span class="ruby-node">%( export nikureport timesheetreport statussheetreport)</span>.
|
|
1326
|
+
83: <span class="ruby-identifier">include?</span>(<span class="ruby-identifier">keyword</span>)
|
|
1327
|
+
84: <span class="ruby-ivar">@optionalAttributes</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-keyword kw">self</span>)
|
|
1328
|
+
85: <span class="ruby-keyword kw">end</span></pre>
|
|
1320
1329
|
</div>
|
|
1321
1330
|
|
|
1322
1331
|
</div>
|
|
@@ -1351,16 +1360,16 @@ is returned as ‘foo (bar)’. ‘foo’ will remain
|
|
|
1351
1360
|
<div class="method-source-code"
|
|
1352
1361
|
id="title-source">
|
|
1353
1362
|
<pre>
|
|
1354
|
-
<span class="ruby-comment cmt"># File lib/KeywordDocumentation.rb, line
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1363
|
+
<span class="ruby-comment cmt"># File lib/KeywordDocumentation.rb, line 176</span>
|
|
1364
|
+
176: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">title</span>
|
|
1365
|
+
177: <span class="ruby-identifier">kwTokens</span> = <span class="ruby-ivar">@keyword</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">'.'</span>)
|
|
1366
|
+
178: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">kwTokens</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span>
|
|
1367
|
+
179: <span class="ruby-identifier">title</span> = <span class="ruby-ivar">@keyword</span>
|
|
1368
|
+
180: <span class="ruby-keyword kw">else</span>
|
|
1369
|
+
181: <span class="ruby-identifier">title</span> = <span class="ruby-node">"#{kwTokens[0]} (#{kwTokens[1]})"</span>
|
|
1370
|
+
182: <span class="ruby-keyword kw">end</span>
|
|
1371
|
+
183: <span class="ruby-identifier">title</span>
|
|
1372
|
+
184: <span class="ruby-keyword kw">end</span></pre>
|
|
1364
1373
|
</div>
|
|
1365
1374
|
|
|
1366
1375
|
</div>
|
|
@@ -1393,122 +1402,122 @@ Return the complete documentation of this keyword as formatted text string.
|
|
|
1393
1402
|
<div class="method-source-code"
|
|
1394
1403
|
id="to-s-source">
|
|
1395
1404
|
<pre>
|
|
1396
|
-
<span class="ruby-comment cmt"># File lib/KeywordDocumentation.rb, line
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1405
|
+
<span class="ruby-comment cmt"># File lib/KeywordDocumentation.rb, line 188</span>
|
|
1406
|
+
188: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
|
|
1407
|
+
189: <span class="ruby-identifier">tagW</span> = <span class="ruby-value">13</span>
|
|
1408
|
+
190: <span class="ruby-identifier">textW</span> = <span class="ruby-value">79</span>
|
|
1409
|
+
191:
|
|
1410
|
+
192: <span class="ruby-comment cmt"># Top line with multiple elements</span>
|
|
1411
|
+
193: <span class="ruby-identifier">str</span> = <span class="ruby-node">"Keyword: #{@keyword} "</span> <span class="ruby-operator">+</span>
|
|
1412
|
+
194: <span class="ruby-node">"Scenario Specific: #{@scenarioSpecific ? 'Yes' : 'No'} "</span> <span class="ruby-operator">+</span>
|
|
1413
|
+
195: <span class="ruby-node">"Inherited: #{@inheritedFromParent ? 'Yes' : 'No'}\n\n"</span>
|
|
1414
|
+
196:
|
|
1415
|
+
197: <span class="ruby-identifier">str</span> <span class="ruby-operator">+=</span> <span class="ruby-node">"Purpose: #{format(tagW, newRichText(@pattern.doc).to_s,
|
|
1416
|
+
198: textW)}\n\n"</span>
|
|
1417
|
+
199:
|
|
1418
|
+
200: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@syntax</span> <span class="ruby-operator">!=</span> <span class="ruby-value str">'[{ <attributes> }]'</span>
|
|
1419
|
+
201: <span class="ruby-identifier">str</span> <span class="ruby-operator">+=</span> <span class="ruby-node">"Syntax: #{format(tagW, @syntax, textW)}\n\n"</span>
|
|
1420
|
+
202:
|
|
1421
|
+
203: <span class="ruby-identifier">str</span> <span class="ruby-operator">+=</span> <span class="ruby-value str">"Arguments: "</span>
|
|
1422
|
+
204: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@args</span>.<span class="ruby-identifier">empty?</span>
|
|
1423
|
+
205: <span class="ruby-identifier">str</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">format</span>(<span class="ruby-identifier">tagW</span>, <span class="ruby-value str">"none\n\n"</span>, <span class="ruby-identifier">textW</span>)
|
|
1424
|
+
206: <span class="ruby-keyword kw">else</span>
|
|
1425
|
+
207: <span class="ruby-identifier">argStr</span> = <span class="ruby-value str">''</span>
|
|
1426
|
+
208: <span class="ruby-ivar">@args</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">arg</span><span class="ruby-operator">|</span>
|
|
1427
|
+
209: <span class="ruby-identifier">argText</span> = <span class="ruby-identifier">arg</span>.<span class="ruby-identifier">text</span> <span class="ruby-operator">||</span> <span class="ruby-node">"See '#{arg.name}' for details."</span>
|
|
1428
|
+
210: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">arg</span>.<span class="ruby-identifier">typeSpec</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> (<span class="ruby-node">"<#{arg.name}>"</span>) <span class="ruby-operator">==</span> <span class="ruby-identifier">arg</span>.<span class="ruby-identifier">typeSpec</span>
|
|
1429
|
+
211: <span class="ruby-identifier">indent</span> = <span class="ruby-identifier">arg</span>.<span class="ruby-identifier">name</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">+</span> <span class="ruby-value">2</span>
|
|
1430
|
+
212: <span class="ruby-identifier">argStr</span> <span class="ruby-operator">+=</span> <span class="ruby-node">"#{arg.name}: "</span> <span class="ruby-operator">+</span>
|
|
1431
|
+
213: <span class="ruby-node">"#{format(indent, argText, textW - tagW)}\n"</span>
|
|
1432
|
+
214: <span class="ruby-keyword kw">else</span>
|
|
1433
|
+
215: <span class="ruby-identifier">typeSpec</span> = <span class="ruby-identifier">arg</span>.<span class="ruby-identifier">typeSpec</span>
|
|
1434
|
+
216: <span class="ruby-identifier">typeSpec</span>[<span class="ruby-value">0</span>] = <span class="ruby-value str">'['</span>
|
|
1435
|
+
217: <span class="ruby-identifier">typeSpec</span>[<span class="ruby-value">1</span>] = <span class="ruby-value str">']'</span>
|
|
1436
|
+
218: <span class="ruby-identifier">indent</span> = <span class="ruby-identifier">arg</span>.<span class="ruby-identifier">name</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">typeSpec</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">+</span> <span class="ruby-value">3</span>
|
|
1437
|
+
219: <span class="ruby-identifier">argStr</span> <span class="ruby-operator">+=</span> <span class="ruby-node">"#{arg.name} #{typeSpec}: "</span> <span class="ruby-operator">+</span>
|
|
1438
|
+
220: <span class="ruby-node">"#{format(indent, argText, textW - tagW)}\n"</span>
|
|
1439
|
+
221: <span class="ruby-keyword kw">end</span>
|
|
1440
|
+
222: <span class="ruby-keyword kw">end</span>
|
|
1441
|
+
223: <span class="ruby-identifier">str</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">indent</span>(<span class="ruby-identifier">tagW</span>, <span class="ruby-identifier">argStr</span>)
|
|
1442
|
+
224: <span class="ruby-keyword kw">end</span>
|
|
1443
|
+
225: <span class="ruby-identifier">str</span> <span class="ruby-operator">+=</span> <span class="ruby-value str">"\n"</span>
|
|
1444
|
+
226: <span class="ruby-keyword kw">end</span>
|
|
1445
|
+
227:
|
|
1446
|
+
228: <span class="ruby-identifier">str</span> <span class="ruby-operator">+=</span> <span class="ruby-value str">'Context: '</span>
|
|
1447
|
+
229: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@contexts</span>.<span class="ruby-identifier">empty?</span>
|
|
1448
|
+
230: <span class="ruby-identifier">str</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">format</span>(<span class="ruby-identifier">tagW</span>, <span class="ruby-value str">'Global scope'</span>, <span class="ruby-identifier">textW</span>)
|
|
1449
|
+
231: <span class="ruby-keyword kw">else</span>
|
|
1450
|
+
232: <span class="ruby-identifier">cxtStr</span> = <span class="ruby-value str">''</span>
|
|
1451
|
+
233: <span class="ruby-ivar">@contexts</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">context</span><span class="ruby-operator">|</span>
|
|
1452
|
+
234: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">cxtStr</span>.<span class="ruby-identifier">empty?</span>
|
|
1453
|
+
235: <span class="ruby-identifier">cxtStr</span> <span class="ruby-operator">+=</span> <span class="ruby-value str">', '</span>
|
|
1454
|
+
236: <span class="ruby-keyword kw">end</span>
|
|
1455
|
+
237: <span class="ruby-identifier">cxtStr</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">context</span>.<span class="ruby-identifier">keyword</span>
|
|
1456
|
+
238: <span class="ruby-keyword kw">end</span>
|
|
1457
|
+
239: <span class="ruby-identifier">str</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">format</span>(<span class="ruby-identifier">tagW</span>, <span class="ruby-identifier">cxtStr</span>, <span class="ruby-identifier">textW</span>)
|
|
1458
|
+
240: <span class="ruby-keyword kw">end</span>
|
|
1459
|
+
241:
|
|
1460
|
+
242: <span class="ruby-identifier">str</span> <span class="ruby-operator">+=</span> <span class="ruby-value str">"\n\nAttributes: "</span>
|
|
1461
|
+
243: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@optionalAttributes</span>.<span class="ruby-identifier">empty?</span>
|
|
1462
|
+
244: <span class="ruby-identifier">str</span> <span class="ruby-operator">+=</span> <span class="ruby-value str">"none\n\n"</span>
|
|
1463
|
+
245: <span class="ruby-keyword kw">else</span>
|
|
1464
|
+
246: <span class="ruby-identifier">attrStr</span> = <span class="ruby-value str">''</span>
|
|
1465
|
+
247: <span class="ruby-ivar">@optionalAttributes</span>.<span class="ruby-identifier">sort!</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">a</span>, <span class="ruby-identifier">b</span><span class="ruby-operator">|</span>
|
|
1466
|
+
248: <span class="ruby-identifier">a</span>.<span class="ruby-identifier">keyword</span> <span class="ruby-operator"><=></span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">keyword</span>
|
|
1467
|
+
249: <span class="ruby-keyword kw">end</span>
|
|
1468
|
+
250: <span class="ruby-identifier">showLegend</span> = <span class="ruby-keyword kw">false</span>
|
|
1469
|
+
251: <span class="ruby-ivar">@optionalAttributes</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">attr</span><span class="ruby-operator">|</span>
|
|
1470
|
+
252: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">attrStr</span>.<span class="ruby-identifier">empty?</span>
|
|
1471
|
+
253: <span class="ruby-identifier">attrStr</span> <span class="ruby-operator">+=</span> <span class="ruby-value str">', '</span>
|
|
1472
|
+
254: <span class="ruby-keyword kw">end</span>
|
|
1473
|
+
255: <span class="ruby-identifier">attrStr</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">attr</span>.<span class="ruby-identifier">keyword</span>
|
|
1474
|
+
256: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">attr</span>.<span class="ruby-identifier">scenarioSpecific</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">attr</span>.<span class="ruby-identifier">inheritedFromProject</span> <span class="ruby-operator">||</span>
|
|
1475
|
+
257: <span class="ruby-identifier">attr</span>.<span class="ruby-identifier">inheritedFromParent</span>
|
|
1476
|
+
258: <span class="ruby-identifier">first</span> = <span class="ruby-keyword kw">true</span>
|
|
1477
|
+
259: <span class="ruby-identifier">showLegend</span> = <span class="ruby-keyword kw">true</span>
|
|
1478
|
+
260: <span class="ruby-identifier">attrStr</span> <span class="ruby-operator">+=</span> <span class="ruby-value str">'['</span>
|
|
1479
|
+
261: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">attr</span>.<span class="ruby-identifier">scenarioSpecific</span>
|
|
1480
|
+
262: <span class="ruby-identifier">attrStr</span> <span class="ruby-operator">+=</span> <span class="ruby-value str">'sc'</span>
|
|
1481
|
+
263: <span class="ruby-identifier">first</span> = <span class="ruby-keyword kw">false</span>
|
|
1482
|
+
264: <span class="ruby-keyword kw">end</span>
|
|
1483
|
+
265: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">attr</span>.<span class="ruby-identifier">inheritedFromProject</span>
|
|
1484
|
+
266: <span class="ruby-identifier">attrStr</span> <span class="ruby-operator">+=</span> <span class="ruby-value str">':'</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">first</span>
|
|
1485
|
+
267: <span class="ruby-identifier">attrStr</span> <span class="ruby-operator">+=</span> <span class="ruby-value str">'ig'</span>
|
|
1486
|
+
268: <span class="ruby-identifier">first</span> = <span class="ruby-keyword kw">false</span>
|
|
1487
|
+
269: <span class="ruby-keyword kw">end</span>
|
|
1488
|
+
270: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">attr</span>.<span class="ruby-identifier">inheritedFromParent</span>
|
|
1489
|
+
271: <span class="ruby-identifier">attrStr</span> <span class="ruby-operator">+=</span> <span class="ruby-value str">':'</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">first</span>
|
|
1490
|
+
272: <span class="ruby-identifier">attrStr</span> <span class="ruby-operator">+=</span> <span class="ruby-value str">'ip'</span>
|
|
1491
|
+
273: <span class="ruby-keyword kw">end</span>
|
|
1492
|
+
274: <span class="ruby-identifier">attrStr</span> <span class="ruby-operator">+=</span> <span class="ruby-value str">']'</span>
|
|
1493
|
+
275: <span class="ruby-keyword kw">end</span>
|
|
1494
|
+
276: <span class="ruby-keyword kw">end</span>
|
|
1495
|
+
277: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">showLegend</span>
|
|
1496
|
+
278: <span class="ruby-identifier">attrStr</span> <span class="ruby-operator">+=</span> <span class="ruby-value str">"\n\n[sc] : Attribute is scenario specific"</span> <span class="ruby-operator">+</span>
|
|
1497
|
+
279: <span class="ruby-value str">"\n[ig] : Attribute is inherited from global attribute"</span> <span class="ruby-operator">+</span>
|
|
1498
|
+
280: <span class="ruby-value str">"\n[ip] : Attribute is inherited from parent property"</span>
|
|
1499
|
+
281: <span class="ruby-keyword kw">end</span>
|
|
1500
|
+
282: <span class="ruby-identifier">str</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">format</span>(<span class="ruby-identifier">tagW</span>, <span class="ruby-identifier">attrStr</span>, <span class="ruby-identifier">textW</span>)
|
|
1501
|
+
283: <span class="ruby-identifier">str</span> <span class="ruby-operator">+=</span> <span class="ruby-value str">"\n"</span>
|
|
1502
|
+
284: <span class="ruby-keyword kw">end</span>
|
|
1503
|
+
285:
|
|
1504
|
+
286: <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@seeAlso</span>.<span class="ruby-identifier">empty?</span>
|
|
1505
|
+
287: <span class="ruby-identifier">str</span> <span class="ruby-operator">+=</span> <span class="ruby-value str">"See also: "</span>
|
|
1506
|
+
288: <span class="ruby-identifier">alsoStr</span> = <span class="ruby-value str">''</span>
|
|
1507
|
+
289: <span class="ruby-ivar">@seeAlso</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">also</span><span class="ruby-operator">|</span>
|
|
1508
|
+
290: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">alsoStr</span>.<span class="ruby-identifier">empty?</span>
|
|
1509
|
+
291: <span class="ruby-identifier">alsoStr</span> <span class="ruby-operator">+=</span> <span class="ruby-value str">', '</span>
|
|
1510
|
+
292: <span class="ruby-keyword kw">end</span>
|
|
1511
|
+
293: <span class="ruby-identifier">alsoStr</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">also</span>.<span class="ruby-identifier">keyword</span>
|
|
1512
|
+
294: <span class="ruby-keyword kw">end</span>
|
|
1513
|
+
295: <span class="ruby-identifier">str</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">format</span>(<span class="ruby-identifier">tagW</span>, <span class="ruby-identifier">alsoStr</span>, <span class="ruby-identifier">textW</span>)
|
|
1514
|
+
296: <span class="ruby-identifier">str</span> <span class="ruby-operator">+=</span> <span class="ruby-value str">"\n"</span>
|
|
1515
|
+
297: <span class="ruby-keyword kw">end</span>
|
|
1516
|
+
298:
|
|
1517
|
+
299: <span class="ruby-comment cmt"># str += "Rule: #{@rule.name}\n" if @rule</span>
|
|
1518
|
+
300: <span class="ruby-comment cmt"># str += "Pattern: #{@pattern.tokens.join(' ')}\n" if @pattern</span>
|
|
1519
|
+
301: <span class="ruby-identifier">str</span>
|
|
1520
|
+
302: <span class="ruby-keyword kw">end</span></pre>
|
|
1512
1521
|
</div>
|
|
1513
1522
|
|
|
1514
1523
|
</div>
|
|
@@ -1545,15 +1554,15 @@ Return the complete documentation of this keyword as formatted text string.
|
|
|
1545
1554
|
<div class="method-source-code"
|
|
1546
1555
|
id="check-eference-source">
|
|
1547
1556
|
<pre>
|
|
1548
|
-
<span class="ruby-comment cmt"># File lib/KeywordDocumentation.rb, line
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
+
<span class="ruby-comment cmt"># File lib/KeywordDocumentation.rb, line 509</span>
|
|
1558
|
+
509: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">checkReference</span>(<span class="ruby-identifier">pattern</span>)
|
|
1559
|
+
510: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">pattern</span>.<span class="ruby-identifier">keyword</span>.<span class="ruby-identifier">nil?</span>
|
|
1560
|
+
511: <span class="ruby-identifier">$stderr</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">"Pattern #{pattern} is undocumented but referenced by "</span> <span class="ruby-operator">+</span>
|
|
1561
|
+
512: <span class="ruby-node">"#{@keyword}."</span>
|
|
1562
|
+
513: <span class="ruby-keyword kw">false</span>
|
|
1563
|
+
514: <span class="ruby-keyword kw">end</span>
|
|
1564
|
+
515: <span class="ruby-keyword kw">true</span>
|
|
1565
|
+
516: <span class="ruby-keyword kw">end</span></pre>
|
|
1557
1566
|
</div>
|
|
1558
1567
|
|
|
1559
1568
|
</div>
|
|
@@ -1584,10 +1593,10 @@ Return the complete documentation of this keyword as formatted text string.
|
|
|
1584
1593
|
<div class="method-source-code"
|
|
1585
1594
|
id="format-source">
|
|
1586
1595
|
<pre>
|
|
1587
|
-
<span class="ruby-comment cmt"># File lib/KeywordDocumentation.rb, line
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1596
|
+
<span class="ruby-comment cmt"># File lib/KeywordDocumentation.rb, line 570</span>
|
|
1597
|
+
570: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">format</span>(<span class="ruby-identifier">indent</span>, <span class="ruby-identifier">str</span>, <span class="ruby-identifier">width</span>)
|
|
1598
|
+
571: <span class="ruby-constant">TextFormatter</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">width</span>, <span class="ruby-identifier">indent</span>).<span class="ruby-identifier">format</span>(<span class="ruby-identifier">str</span>)[<span class="ruby-identifier">indent</span><span class="ruby-operator">..</span><span class="ruby-value">1</span>]
|
|
1599
|
+
572: <span class="ruby-keyword kw">end</span></pre>
|
|
1591
1600
|
</div>
|
|
1592
1601
|
|
|
1593
1602
|
</div>
|
|
@@ -1620,14 +1629,14 @@ Generate the navigation bar.
|
|
|
1620
1629
|
<div class="method-source-code"
|
|
1621
1630
|
id="generate-avigation-ar-source">
|
|
1622
1631
|
<pre>
|
|
1623
|
-
<span class="ruby-comment cmt"># File lib/KeywordDocumentation.rb, line
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1632
|
+
<span class="ruby-comment cmt"># File lib/KeywordDocumentation.rb, line 523</span>
|
|
1633
|
+
523: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">generateHTMLNavigationBar</span>
|
|
1634
|
+
524: <span class="ruby-ivar">@manual</span>.<span class="ruby-identifier">generateHTMLNavigationBar</span>(
|
|
1635
|
+
525: <span class="ruby-ivar">@predecessor</span> <span class="ruby-operator">?</span> <span class="ruby-ivar">@predecessor</span>.<span class="ruby-identifier">title</span> <span class="ruby-operator">:</span> <span class="ruby-keyword kw">nil</span>,
|
|
1636
|
+
526: <span class="ruby-ivar">@predecessor</span> <span class="ruby-operator">?</span> <span class="ruby-node">"#{@predecessor.keyword}.html"</span> <span class="ruby-operator">:</span> <span class="ruby-keyword kw">nil</span>,
|
|
1637
|
+
527: <span class="ruby-ivar">@successor</span> <span class="ruby-operator">?</span> <span class="ruby-ivar">@successor</span>.<span class="ruby-identifier">title</span> <span class="ruby-operator">:</span> <span class="ruby-keyword kw">nil</span>,
|
|
1638
|
+
528: <span class="ruby-ivar">@successor</span> <span class="ruby-operator">?</span> <span class="ruby-node">"#{@successor.keyword}.html"</span> <span class="ruby-operator">:</span> <span class="ruby-keyword kw">nil</span>)
|
|
1639
|
+
529: <span class="ruby-keyword kw">end</span></pre>
|
|
1631
1640
|
</div>
|
|
1632
1641
|
|
|
1633
1642
|
</div>
|
|
@@ -1658,10 +1667,10 @@ Generate the navigation bar.
|
|
|
1658
1667
|
<div class="method-source-code"
|
|
1659
1668
|
id="indent-source">
|
|
1660
1669
|
<pre>
|
|
1661
|
-
<span class="ruby-comment cmt"># File lib/KeywordDocumentation.rb, line
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1670
|
+
<span class="ruby-comment cmt"># File lib/KeywordDocumentation.rb, line 518</span>
|
|
1671
|
+
518: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">indent</span>(<span class="ruby-identifier">width</span>, <span class="ruby-identifier">str</span>)
|
|
1672
|
+
519: <span class="ruby-constant">TextFormatter</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">80</span>, <span class="ruby-identifier">width</span>).<span class="ruby-identifier">indent</span>(<span class="ruby-identifier">str</span>)[<span class="ruby-identifier">width</span><span class="ruby-operator">..</span><span class="ruby-value">1</span>]
|
|
1673
|
+
520: <span class="ruby-keyword kw">end</span></pre>
|
|
1665
1674
|
</div>
|
|
1666
1675
|
|
|
1667
1676
|
</div>
|
|
@@ -1694,11 +1703,11 @@ Return a HTML object with a link to the manual page for the keyword.
|
|
|
1694
1703
|
<div class="method-source-code"
|
|
1695
1704
|
id="keyword-ef-source">
|
|
1696
1705
|
<pre>
|
|
1697
|
-
<span class="ruby-comment cmt"># File lib/KeywordDocumentation.rb, line
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1706
|
+
<span class="ruby-comment cmt"># File lib/KeywordDocumentation.rb, line 532</span>
|
|
1707
|
+
532: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">keywordHTMLRef</span>(<span class="ruby-identifier">parent</span>, <span class="ruby-identifier">keyword</span>)
|
|
1708
|
+
533: <span class="ruby-identifier">parent</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">XMLNamedText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">keyword</span>.<span class="ruby-identifier">title</span>,
|
|
1709
|
+
534: <span class="ruby-value str">'a'</span>, <span class="ruby-value str">'href'</span> =<span class="ruby-operator">></span> <span class="ruby-node">"#{keyword.keyword}.html"</span>)
|
|
1710
|
+
535: <span class="ruby-keyword kw">end</span></pre>
|
|
1702
1711
|
</div>
|
|
1703
1712
|
|
|
1704
1713
|
</div>
|
|
@@ -1735,22 +1744,22 @@ href="KeywordDocumentation.html">KeywordDocumentation</a> list.
|
|
|
1735
1744
|
<div class="method-source-code"
|
|
1736
1745
|
id="list-ttributes-source">
|
|
1737
1746
|
<pre>
|
|
1738
|
-
<span class="ruby-comment cmt"># File lib/KeywordDocumentation.rb, line
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1747
|
+
<span class="ruby-comment cmt"># File lib/KeywordDocumentation.rb, line 554</span>
|
|
1748
|
+
554: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">listHTMLAttributes</span>(<span class="ruby-identifier">list</span>, <span class="ruby-identifier">width</span>)
|
|
1749
|
+
555: <span class="ruby-identifier">td</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'td'</span>, <span class="ruby-value str">'class'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'descr'</span>,
|
|
1750
|
+
556: <span class="ruby-value str">'style'</span> =<span class="ruby-operator">></span> <span class="ruby-node">"width:#{width}%"</span>)
|
|
1751
|
+
557: <span class="ruby-identifier">first</span> = <span class="ruby-keyword kw">true</span>
|
|
1752
|
+
558: <span class="ruby-identifier">list</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">attr</span><span class="ruby-operator">|</span>
|
|
1753
|
+
559: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">first</span>
|
|
1754
|
+
560: <span class="ruby-identifier">first</span> = <span class="ruby-keyword kw">false</span>
|
|
1755
|
+
561: <span class="ruby-keyword kw">else</span>
|
|
1756
|
+
562: <span class="ruby-identifier">td</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">XMLText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">', '</span>)
|
|
1757
|
+
563: <span class="ruby-keyword kw">end</span>
|
|
1758
|
+
564: <span class="ruby-identifier">keywordHTMLRef</span>(<span class="ruby-identifier">td</span>, <span class="ruby-identifier">attr</span>)
|
|
1759
|
+
565: <span class="ruby-keyword kw">end</span>
|
|
1760
|
+
566:
|
|
1761
|
+
567: <span class="ruby-identifier">td</span>
|
|
1762
|
+
568: <span class="ruby-keyword kw">end</span></pre>
|
|
1754
1763
|
</div>
|
|
1755
1764
|
|
|
1756
1765
|
</div>
|
|
@@ -1786,16 +1795,16 @@ converts the exception data into an error message.
|
|
|
1786
1795
|
<div class="method-source-code"
|
|
1787
1796
|
id="new-ich-ext-source">
|
|
1788
1797
|
<pre>
|
|
1789
|
-
<span class="ruby-comment cmt"># File lib/KeywordDocumentation.rb, line
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1798
|
+
<span class="ruby-comment cmt"># File lib/KeywordDocumentation.rb, line 540</span>
|
|
1799
|
+
540: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">newRichText</span>(<span class="ruby-identifier">text</span>)
|
|
1800
|
+
541: <span class="ruby-identifier">rText</span> = <span class="ruby-constant">RichText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">text</span>, [], <span class="ruby-ivar">@messageHandler</span>)
|
|
1801
|
+
542: <span class="ruby-keyword kw">unless</span> (<span class="ruby-identifier">rti</span> = <span class="ruby-identifier">rText</span>.<span class="ruby-identifier">generateIntermediateFormat</span>)
|
|
1802
|
+
543: <span class="ruby-ivar">@messageHandler</span>.<span class="ruby-identifier">error</span>(<span class="ruby-value str">'rich_text'</span>,
|
|
1803
|
+
544: <span class="ruby-node">"Error in RichText of rule #{@keyword}"</span>)
|
|
1804
|
+
545: <span class="ruby-keyword kw">end</span>
|
|
1805
|
+
546: <span class="ruby-ivar">@references</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">rti</span>.<span class="ruby-identifier">internalReferences</span>
|
|
1806
|
+
547: <span class="ruby-identifier">rti</span>
|
|
1807
|
+
548: <span class="ruby-keyword kw">end</span></pre>
|
|
1799
1808
|
</div>
|
|
1800
1809
|
|
|
1801
1810
|
</div>
|