Module: Thunderer::ChannelParser

Defined in:
lib/thunderer/channel_parser.rb

Class Method Summary collapse

Class Method Details

.interpolate_channel(channel, object) ⇒ Object



5
6
7
# File 'lib/thunderer/channel_parser.rb', line 5

def interpolate_channel channel, object
  channel.gsub(/:\w*\b/, interpolation_hash(channel, object))
end