class Mail::FieldList

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.cr

Instance Method Summary

Instance Method Detail

def <<(field) #

[View source]
def add_field(field) #

[View source]
def delete_field(name) #

[View source]
def get_field(field_name) #

[View source]
def has_field?(field_name) #

[View source]
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


[View source]
def push(field) #

[View source]
def replace_field(field) #

[View source]
def select_fields(field_name) #

[View source]
def summary #

[View source]