Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/githubissues-port/string.rb
Instance Method Summary collapse
Instance Method Details
#category ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/githubissues-port/string.rb', line 2 def category if (self =~ /type*/) or (%w(bug duplicate enhancement invalid question wontfix patch).include? self) 'type' elsif (self =~ /priority*/) or (%w(high medium low critical).include? self) 'priority' elsif self =~ /module*/ 'module' elsif self =~ /status*/ 'status' else 'module' end end |