Included Modules

Class Index [+]

Quicksearch

Mail::ContentLocation

Public Instance Methods

_nt_location() click to toggle source
     # File lib/mail/parsers/content_location.rb, line 71
 71:     def _nt_location
 72:       start_index = index
 73:       if node_cache[:location].has_key?(index)
 74:         cached = node_cache[:location][index]
 75:         if cached
 76:           cached = SyntaxNode.new(input, index...(index + 1)) if cached == true
 77:           @index = cached.interval.end
 78:         end
 79:         return cached
 80:       end
 81: 
 82:       i0 = index
 83:       r1 = _nt_quoted_string
 84:       r1.extend(Location0)
 85:       if r1
 86:         r0 = r1
 87:       else
 88:         s2, i2 = [], index
 89:         loop do
 90:           i3 = index
 91:           r4 = _nt_token
 92:           if r4
 93:             r3 = r4
 94:           else
 95:             if has_terminal?('\G[\x3d]', true, index)
 96:               r5 = true
 97:               @index += 1
 98:             else
 99:               r5 = nil
100:             end
101:             if r5
102:               r3 = r5
103:             else
104:               @index = i3
105:               r3 = nil
106:             end
107:           end
108:           if r3
109:             s2 << r3
110:           else
111:             break
112:           end
113:         end
114:         if s2.empty?
115:           @index = i2
116:           r2 = nil
117:         else
118:           r2 = instantiate_node(SyntaxNode,input, i2...index, s2)
119:         end
120:         if r2
121:           r0 = r2
122:         else
123:           @index = i0
124:           r0 = nil
125:         end
126:       end
127: 
128:       node_cache[:location][start_index] = r0
129: 
130:       r0
131:     end
_nt_primary() click to toggle source
    # File lib/mail/parsers/content_location.rb, line 30
30:     def _nt_primary
31:       start_index = index
32:       if node_cache[:primary].has_key?(index)
33:         cached = node_cache[:primary][index]
34:         if cached
35:           cached = SyntaxNode.new(input, index...(index + 1)) if cached == true
36:           @index = cached.interval.end
37:         end
38:         return cached
39:       end
40: 
41:       i0, s0 = index, []
42:       r1 = _nt_CFWS
43:       s0 << r1
44:       if r1
45:         r2 = _nt_location
46:         s0 << r2
47:         if r2
48:           r3 = _nt_CFWS
49:           s0 << r3
50:         end
51:       end
52:       if s0.last
53:         r0 = instantiate_node(SyntaxNode,input, i0...index, s0)
54:         r0.extend(Primary0)
55:       else
56:         @index = i0
57:         r0 = nil
58:       end
59: 
60:       node_cache[:primary][start_index] = r0
61: 
62:       r0
63:     end
root() click to toggle source
    # File lib/mail/parsers/content_location.rb, line 8
 8:     def root
 9:       @root ||= :primary
10:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.