Class: Hanamimastery::CLI::Transformations::Unshot

Inherits:
Object
  • Object
show all
Defined in:
lib/hanamimastery/cli/transformations/unshot.rb

Constant Summary collapse

PATTERN =
/\[🎬[[:space:]]\d{1,3}\][[:space:]]/

Instance Method Summary collapse

Instance Method Details

#call(content, one: false) ⇒ Object

removes shot marks [🎬 01] from the given string



11
12
13
# File 'lib/hanamimastery/cli/transformations/unshot.rb', line 11

def call(content, one: false)
  content.gsub(PATTERN, '')
end