Class: TaskRow

Inherits:
PT::DataRow
  • Object
show all
Defined in:
lib/pt-flow/task_row.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method) ⇒ Object



2
3
4
5
6
7
8
9
10
11
# File 'lib/pt-flow/task_row.rb', line 2

def method_missing(method)
  str = super
  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