class TaskJuggler::BooleanAttribute

Public Class Methods

new(property, type, container) click to toggle source
Calls superclass method TaskJuggler::AttributeBase.new
# File lib/taskjuggler/Attributes.rb, line 125
def initialize(property, type, container)
  super
end
tjpId() click to toggle source
# File lib/taskjuggler/Attributes.rb, line 129
def BooleanAttribute::tjpId
  'boolean'
end

Public Instance Methods

to_s(query = nil) click to toggle source
# File lib/taskjuggler/Attributes.rb, line 133
def to_s(query = nil)
  get ? 'true' : 'false'
end
to_tjp() click to toggle source
# File lib/taskjuggler/Attributes.rb, line 137
def to_tjp
  @type.id + ' ' + (get ? 'yes' : 'no')
end