Class: TaskJuggler::KeywordArray

Inherits:
Array
  • Object
show all
Defined in:
lib/taskjuggler/KeywordArray.rb

Overview

This class is a specialized version of Array. It stores a list of keywords as String objects. The entry ‘*’ is special. It means all keywords of a particular set are included. ‘*’ must be the first entry if it is present.

Instance Method Summary collapse

Instance Method Details

#a_include?Object



22
# File 'lib/taskjuggler/KeywordArray.rb', line 22

alias a_include? include?

#include?(keyword) ⇒ Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/taskjuggler/KeywordArray.rb', line 24

def include?(keyword)
  (self[0] == '*') || a_include?(keyword)
end