Module: Light::Services::Parameters::ClassMethods
- Defined in:
- lib/light/services/parameters.rb
Instance Method Summary collapse
Instance Method Details
#param(name, options = {}) ⇒ Object
83 84 85 86 87 88 89 90 91 92 |
# File 'lib/light/services/parameters.rb', line 83 def param(name, = {}) self.parameters ||= [] self.parameters << { name: name, required: .fetch(:required, true), public: .fetch(:private, false), type: [*[:type]].compact, allow_nil: .fetch(:allow_nil, false) } end |