Class: Customization

Inherits:
Object
  • Object
show all
Defined in:
lib/stream_prettifier.rb

Instance Method Summary collapse

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

#actionObject



12
13
14
# File 'lib/stream_prettifier.rb', line 12

def action
    @action
end

#regexObject



16
17
18
# File 'lib/stream_prettifier.rb', line 16

def regex
    @regex
end