Class: DamageControl::Tracker::Base
- Inherits:
-
Object
- Object
- DamageControl::Tracker::Base
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.
Constant Summary
collapse
- @@classes =
[]
Class Method Summary
collapse
Instance Method Summary
collapse
#selected?, #short
Class Method Details
.classes ⇒ Object
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
|