Class: OpenLogCleaner::Message
- Inherits:
-
Struct
- Object
- Struct
- OpenLogCleaner::Message
- Defined in:
- lib/openlogcleaner/message.rb,
lib/openlogcleaner/message.rb
Instance Attribute Summary collapse
-
#color ⇒ Object
Returns the value of attribute color.
-
#content ⇒ Object
Returns the value of attribute content.
-
#count ⇒ Object
Returns the value of attribute count.
-
#nick ⇒ Object
Returns the value of attribute nick.
Instance Method Summary collapse
Instance Attribute Details
#color ⇒ Object
Returns the value of attribute color
4 5 6 |
# File 'lib/openlogcleaner/message.rb', line 4 def color @color end |
#content ⇒ Object
Returns the value of attribute content
4 5 6 |
# File 'lib/openlogcleaner/message.rb', line 4 def content @content end |
#count ⇒ Object
Returns the value of attribute count
4 5 6 |
# File 'lib/openlogcleaner/message.rb', line 4 def count @count end |
#nick ⇒ Object
Returns the value of attribute nick
4 5 6 |
# File 'lib/openlogcleaner/message.rb', line 4 def nick @nick end |
Instance Method Details
#is_ooc? ⇒ Boolean
7 8 9 |
# File 'lib/openlogcleaner/message.rb', line 7 def is_ooc? content =~ /^\(\(?[^)]+\)\)?/ or content =~ /^\[\d+d/ end |
#style ⇒ Object
11 12 13 |
# File 'lib/openlogcleaner/message.rb', line 11 def style "color: #{color};" end |