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 = "http://bugzilla.org/") ⇒ Bugzilla
constructor
A new instance of Bugzilla.
- #name ⇒ Object
Methods inherited from Base
Methods included from Web::Configuration
Constructor Details
#initialize(url = "http://bugzilla.org/") ⇒ Bugzilla
Returns a new instance of Bugzilla.
50 51 52 |
# File 'lib/damagecontrol/tracker.rb', line 50 def initialize(url="http://bugzilla.org/") @url = url end |
Instance Attribute Details
#url ⇒ Object
Returns the value of attribute url.
48 49 50 |
# File 'lib/damagecontrol/tracker.rb', line 48 def url @url end |
Instance Method Details
#highlight(s) ⇒ Object
58 59 60 61 62 63 64 65 |
# File 'lib/damagecontrol/tracker.rb', line 58 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
54 55 56 |
# File 'lib/damagecontrol/tracker.rb', line 54 def name "Bugzilla" end |