Sha256: e3745ae0da9e6d41c7083cf4c61ddc52b9d76d1bcdd8bda66c8630aa2f71164b

Contents?: true

Size: 306 Bytes

Versions: 8

Compression:

Stored size: 306 Bytes

Contents

class TaskRow < PT::DataRow
  def method_missing(method)
    str = super
    return unless str.size > 0
    case @record.story_type
    when 'feature' then str.cyan.bold
    when 'chore' then str
    when 'bug' then str.red
    when 'release' then "< #{str} >".white_on_blue
    else str
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pt-flow-2.7.0 lib/pt-flow/task_row.rb
pt-flow-2.6.1 lib/pt-flow/task_row.rb
pt-flow-2.6.0 lib/pt-flow/task_row.rb
pt-flow-2.5.0 lib/pt-flow/task_row.rb
pt-flow-2.4.0 lib/pt-flow/task_row.rb
pt-flow-2.3.3 lib/pt-flow/task_row.rb
pt-flow-2.3.2 lib/pt-flow/task_row.rb
pt-flow-2.3.1 lib/pt-flow/task_row.rb