Sha256: 16f15041e024e248785a09cc001738a5f48239606532c21a98fa5b198524fd9a
Contents?: true
Size: 397 Bytes
Versions: 4
Compression:
Stored size: 397 Bytes
Contents
require 'sham/config/base' module Sham class Config class Parameters < Base def initialize(config) @config = config end def options(*args) @args = args if @args.empty? @config.call.each do |arg| @args << parse!(arg) end end self end def args @args end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
sham-2.0.0 | lib/sham/config/parameters.rb |
sham-1.2.0 | lib/sham/config/parameters.rb |
sham-1.1.0 | lib/sham/config/parameters.rb |
sham-1.0.3 | lib/sham/config/parameters.rb |