class Phenotype::ParamStrategy

Attributes

param[R]

Public Class Methods

new(param = 'v') click to toggle source
# File lib/phenotype/strategies/param_strategy.rb, line 7
def initialize(param = 'v')
  @param = param
end

Public Instance Methods

version(env) click to toggle source
# File lib/phenotype/strategies/param_strategy.rb, line 11
def version(env)
  Rack::Request.new(env).params[param] || NullStrategy.new
end