module Light::Services::Parameters::ClassMethods
Public Instance Methods
param(name, options = {})
click to toggle source
# File lib/light/services/parameters.rb, line 83 def param(name, options = {}) self.parameters ||= [] self.parameters << { name: name, required: options.fetch(:required, true), public: options.fetch(:private, false), type: [*options[:type]].compact, allow_nil: options.fetch(:allow_nil, false) } end