class TaskJuggler::BooleanAttribute
Public Class Methods
Source
# File lib/taskjuggler/Attributes.rb, line 127 def initialize(property, type, container) super end
Calls superclass method
TaskJuggler::AttributeBase::new
Source
# File lib/taskjuggler/Attributes.rb, line 131 def BooleanAttribute::tjpId 'boolean' end
Public Instance Methods
Source
# File lib/taskjuggler/Attributes.rb, line 135 def to_s(query = nil) get ? 'true' : 'false' end
Source
# File lib/taskjuggler/Attributes.rb, line 139 def to_tjp @type.id + ' ' + (get ? 'yes' : 'no') end