Class: Bug

Inherits:
Object
  • Object
show all
Defined in:
lib/gen-tj/genbuglist.rb

Overview

extend DataMapper Bug

Instance Method Summary collapse

Instance Method Details

#to_tjObject



15
16
17
18
19
20
21
22
23
# File 'lib/gen-tj/genbuglist.rb', line 15

def to_tj
  a = @assigned_to.split('@').first.gsub(".","_")
  s = @summary.gsub("\"","\\\"")
  s = "task bug_#{@id} \"#{s}\" {\n"
  s << "  allocate #{a}\n"
  s << "  effort 2d\n"
  s << "}\n"
  s
end