Class: DamageControl::Tracker::Base

Inherits:
Object
  • Object
show all
Includes:
Web::Configuration
Defined in:
lib/damagecontrol/tracker.rb,
app/controllers/rscm_ext.rb

Overview

Simple superclass so we can easily include mixins for all subclasses in one fell swoop.

Direct Known Subclasses

Bugzilla, JIRA, None, Scarab, SourceForge, Trac

Constant Summary collapse

@@classes =

:nodoc:

[]

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Web::Configuration

#selected?, #short

Class Method Details

.classesObject



15
16
17
# File 'lib/damagecontrol/tracker.rb', line 15

def self.classes
  @@classes
end

.register(cls) ⇒ Object



11
12
13
# File 'lib/damagecontrol/tracker.rb', line 11

def self.register(cls) 
  @@classes << cls unless @@classes.index(cls)
end

Instance Method Details

#htmlize(str) ⇒ Object



19
20
21
# File 'lib/damagecontrol/tracker.rb', line 19

def htmlize(str)
  str.gsub(/\n/, "<br>")
end