Class: DamageControl::Tracker::Bugzilla
- Defined in:
- lib/damagecontrol/tracker.rb
Instance Attribute Summary collapse
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
- #highlight(s) ⇒ Object
-
#initialize(url = nil) ⇒ Bugzilla
constructor
A new instance of Bugzilla.
- #name ⇒ Object
Methods inherited from Base
Methods included from Web::Configuration
Constructor Details
#initialize(url = nil) ⇒ Bugzilla
Returns a new instance of Bugzilla.
32 33 34 |
# File 'lib/damagecontrol/tracker.rb', line 32 def initialize(url=nil) @url = url end |
Instance Attribute Details
#url ⇒ Object
Returns the value of attribute url.
30 31 32 |
# File 'lib/damagecontrol/tracker.rb', line 30 def url @url end |
Instance Method Details
#highlight(s) ⇒ Object
40 41 42 43 44 45 46 47 |
# File 'lib/damagecontrol/tracker.rb', line 40 def highlight(s) url = RSCM::PathConverter.ensure_trailing_slash(@url) if (url) htmlize(s.gsub(/#([0-9]+)/, "<a href=\"#{url}show_bug.cgi?id=\\1\">#\\1</a>")) else htmlize(s) end end |
#name ⇒ Object
36 37 38 |
# File 'lib/damagecontrol/tracker.rb', line 36 def name "Bugzilla" end |