# File lib/bindata/sanitize.rb, line 78 def add_field(type, name, params) name = nil if name == "" @fields << SanitizedField.new(name, type, params, @endian) end
# File lib/bindata/sanitize.rb, line 108 def all_field_names_blank? @fields.all? { |f| f.name == nil } end
# File lib/bindata/sanitize.rb, line 116 def any_field_has_parameter?(parameter) @fields.any? { |f| f.has_parameter?(parameter) } end
# File lib/bindata/sanitize.rb, line 120 def copy_fields(other) @fields.concat(other.fields) end
# File lib/bindata/sanitize.rb, line 96 def each(&block) @fields.each(&block) end
# File lib/bindata/sanitize.rb, line 88 def empty? @fields.empty? end
# File lib/bindata/sanitize.rb, line 100 def field_names @fields.collect { |field| field.name_as_sym } end
# File lib/bindata/sanitize.rb, line 104 def has_field_name?(name) @fields.detect { |f| f.name_as_sym == name.to_sym } end
Generated with the Darkfish Rdoc Generator 2.