Object
A DSLParser parses and accumulates field definitions of the form
type name, params
where:
* +type+ is the under_scored name of a registered type * +name+ is the (possible optional) name of the field * +params+ is a hash containing any parameters
# File lib/bindata/dsl.rb, line 113 def dsl_params case @parser_type when :struct to_struct_params when :array to_array_params when :buffer to_array_params when :choice to_choice_params when :primitive to_struct_params else raise "unknown parser type #{@parser_type}" end end
# File lib/bindata/dsl.rb, line 80 def endian(endian = nil) if endian.nil? @endian elsif endian == :big or endian == :little @endian = endian else dsl_raise ArgumentError, "unknown value for endian '#{endian}'" end end
Generated with the Darkfish Rdoc Generator 2.