Sha256: 4aec7d7fc85630ccbd6d877838bb90e28f53069c4d3d4e8e4fac7cb7f74d1812
Contents?: true
Size: 579 Bytes
Versions: 70
Compression:
Stored size: 579 Bytes
Contents
module Clamp module Parameter module Parsing protected def parse_parameters self.class.parameters.each do |parameter| begin parameter.consume(remaining_arguments).each do |value| parameter.of(self).take(value) end rescue ArgumentError => e signal_usage_error "parameter '#{parameter.name}': #{e.message}" end end self.class.parameters.each do |parameter| parameter.of(self).default_from_environment end end end end end
Version data entries
70 entries across 66 versions & 18 rubygems