spec/acceptance/examples_spec.rb
def product_path(str, ext)
        str
          .gsub('.rb', ".#{ext}")
          .gsub('example/', 'example/output/')
      end
# Generates a product path for a given example file.
Generates a product path for a given example file.
Generates a product path for a given example file .
def product_path(str, ext)
        str
          .gsub('.rb', ".#{ext}")
          .gsub('example/', 'example/output/')
      end
def product_path ( str , ext ) str . gsub ( '.rb' , ".#{ext}" ) . gsub ( 'example/' , 'example/output/' ) end
Generates a product path for a given example file.
Generates a product path for a given example file .
str
ext