Class: Customization
- Inherits:
-
Object
- Object
- Customization
- Defined in:
- lib/stream_prettifier.rb
Instance Method Summary collapse
- #action ⇒ Object
-
#initialize(regex, action) ⇒ Customization
constructor
A new instance of Customization.
- #regex ⇒ Object
Constructor Details
#initialize(regex, action) ⇒ Customization
Returns a new instance of Customization.
7 8 9 10 |
# File 'lib/stream_prettifier.rb', line 7 def initialize(regex, action) @regex = regex @action = action end |
Instance Method Details
#action ⇒ Object
12 13 14 |
# File 'lib/stream_prettifier.rb', line 12 def action @action end |
#regex ⇒ Object
16 17 18 |
# File 'lib/stream_prettifier.rb', line 16 def regex @regex end |