Class: ParamsReady::Parameter::ArrayParameterBuilder

Inherits:
Builder show all
Includes:
Marshaller::BuilderModule, ArrayLike
Defined in:
lib/params_ready/parameter/array_parameter.rb

Defined Under Namespace

Modules: ArrayLike

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Marshaller::BuilderModule

#marshal

Methods included from ArrayLike

#prototype

Methods inherited from Builder

#helper

Methods inherited from AbstractBuilder

#build, builder, define_parameter, define_registered_parameter, #fetch, fetch_builder, #include, #initialize, #open?, register, register_deprecated, resolve

Methods included from Extensions::Registry

#human_string, #registry

Constructor Details

This class inherits a constructor from ParamsReady::AbstractBuilder

Class Method Details

.instance(name, altn: nil) ⇒ Object



125
126
127
# File 'lib/params_ready/parameter/array_parameter.rb', line 125

def self.instance(name, altn: nil)
  new ArrayParameterDefinition.new(name, altn: altn)
end

Instance Method Details

#compactObject



129
130
131
# File 'lib/params_ready/parameter/array_parameter.rb', line 129

def compact
  @definition.set_compact true
end