class Mail::FieldList
- Mail::FieldList
- Reference
- Object
Overview
Field List class provides an enhanced array that keeps a list of email fields in order. And allows you to insert new fields without having to worry about the order they will appear in.
Defined in:
mail/field_list.crInstance Method Summary
- #<<(field)
- #add_field(field)
- #delete_field(name)
- #get_field(field_name)
- #has_field?(field_name)
-
#insert_field(field)
Insert the field in sorted order.
- #push(field)
- #replace_field(field)
- #select_fields(field_name)
- #summary
Instance Method Detail
def insert_field(field)
#
Insert the field in sorted order.
Heavily based on bisect.insort from Python, which is: Copyright (C) 2001-2013 Python Software Foundation. Licensed under http://docs.python.org/license.html From http://hg.python.org/cpython/file/2.7/Lib/bisect.py