Class TaskJuggler::BooleanAttribute
In: lib/taskjuggler/Attributes.rb
Parent: AttributeBase

Methods

new   tjpId   to_s   to_tjp  

Public Class methods

[Source]

# File lib/taskjuggler/Attributes.rb, line 126
    def initialize(property, type, container)
      super
    end

[Source]

# File lib/taskjuggler/Attributes.rb, line 130
    def BooleanAttribute::tjpId
      'boolean'
    end

Public Instance methods

[Source]

# File lib/taskjuggler/Attributes.rb, line 134
    def to_s(query = nil)
      get ? 'true' : 'false'
    end

[Source]

# File lib/taskjuggler/Attributes.rb, line 138
    def to_tjp
      @type.id + ' ' + (get ? 'yes' : 'no')
    end

[Validate]