# File lib/bindata/sanitize.rb, line 64 def add_field(type, name, params) name = nil if name == "" @fields << SanitizedField.new(name, type, params, @endian) end
# File lib/bindata/sanitize.rb, line 98 def all_field_names_blank? @fields.all? { |f| f.name == nil } end
# File lib/bindata/sanitize.rb, line 86 def collect(&block) @fields.collect(&block) end
# File lib/bindata/sanitize.rb, line 106 def copy_fields(other) @fields.concat(other.fields) end
# File lib/bindata/sanitize.rb, line 82 def each(&block) @fields.each(&block) end
# File lib/bindata/sanitize.rb, line 74 def empty? @fields.empty? end
# File lib/bindata/sanitize.rb, line 90 def field_names @fields.collect { |field| field.name_as_sym } end
# File lib/bindata/sanitize.rb, line 94 def has_field_name?(name) @fields.detect { |f| f.name_as_sym == name.to_sym } end
Generated with the Darkfish Rdoc Generator 2.