Sha256: f7fde1877866bcd87ea0b03d555b08887d28d8ac5816f272f7c77196580beb72
Contents?: true
Size: 520 Bytes
Versions: 21
Compression:
Stored size: 520 Bytes
Contents
require 'clamp/attribute_declaration' require 'clamp/parameter' module Clamp class Parameter module Declaration include Clamp::AttributeDeclaration def parameters @parameters ||= [] end def has_parameters? !parameters.empty? end def parameter(name, description, options = {}, &block) parameter = Parameter.new(name, description, options) parameters << parameter define_accessors_for(parameter, &block) end end end end
Version data entries
21 entries across 21 versions & 3 rubygems