Class: BinData::BufferArgProcessor

Inherits:
BaseArgProcessor show all
Includes:
MultiFieldArgSeparator
Defined in:
lib/bindata/buffer.rb

Instance Method Summary collapse

Methods included from MultiFieldArgSeparator

#field_names_in_parameters?, #parameters_is_value?, #separate_args

Methods inherited from BaseArgProcessor

#extract_args, #separate_args

Instance Method Details

#sanitize_parameters!(obj_class, params) ⇒ Object



111
112
113
114
115
# File 'lib/bindata/buffer.rb', line 111

def sanitize_parameters!(obj_class, params)
  params.merge!(obj_class.dsl_params)
  params.must_be_integer(:length)
  params.sanitize_object_prototype(:type)
end