Sha256: cdb77904c2a5fce5e0c39123c7d7351e897657c8aa3d09f097e0180084d5c93e

Contents?: true

Size: 1.38 KB

Versions: 3

Compression:

Stored size: 1.38 KB

Contents

#!/usr/bin/env ruby -w
# encoding: UTF-8
#
# = FunctionHandler.rb -- The TaskJuggler III Project Management Software
#
# Copyright (c) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014
#               by Chris Schlaeger <cs@taskjuggler.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of version 2 of the GNU General Public License as
# published by the Free Software Foundation.
#

require 'taskjuggler/MessageHandler'

class TaskJuggler

  # This class is the abstract base class for all RichText function handlers.
  # A function handler is responsible for a certain function such as 'example'
  # or 'query'. functions are used in internal RichText references such as
  # '[[example:Allocation 2]]'. 'example' is the function, 'Allocation' is the
  # path and '2' is the first argument. Arguments are optional. The function
  # handler can turn such internal references into Strings or XMLElement
  # trees. Therefor, each derived handler needs to implement a to_s, to_html
  # and to_tagged method that takes two parameter. The first is the path, the
  # second is the argument Array.
  class RichTextFunctionHandler

    include MessageHandler

    attr_reader :function, :blockFunction

    def initialize(function, sourceFileInfo = nil)
      @function = function
      @blockFunction = false
      @sourceFileInfo = sourceFileInfo
    end

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
taskjuggler-3.7.2 lib/taskjuggler/RichText/FunctionHandler.rb
taskjuggler-3.7.1 lib/taskjuggler/RichText/FunctionHandler.rb
taskjuggler-3.6.0 lib/taskjuggler/RichText/FunctionHandler.rb