Sha256: ad5242eea13497b4f8d7b1c5f4d998b456791332634d68e453753bf02c56a2e4

Contents?: true

Size: 459 Bytes

Versions: 6

Compression:

Stored size: 459 Bytes

Contents

class Teabag.Runner

  @run: false

  constructor: ->
    return if @constructor.run
    @constructor.run = true
    @fixturePath = Teabag.fixturePath
    @params = @getParams()
    @setup()


  getParams: ->
    params = {}
    for param in Teabag.location.search.substring(1).split("&")
      [name, value] = param.split("=")
      params[decodeURIComponent(name)] = decodeURIComponent(value)
    params


  setup: ->
    # left for subclasses to implement

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
teabag-0.3.5 app/assets/javascripts/teabag/base/runner.coffee
teabag-0.3.4 app/assets/javascripts/teabag/base/runner.coffee
teabag-0.3.3 app/assets/javascripts/teabag/base/runner.coffee
teabag-0.3.2 app/assets/javascripts/teabag/base/runner.coffee
teabag-0.3.1 app/assets/javascripts/teabag/base/runner.coffee
teabag-0.3.0 app/assets/javascripts/teabag/base/runner.coffee