Parent

Included Modules

Regin::Collection

Public Class Methods

new(*args) click to toggle source
   # File lib/rack/mount/vendor/regin/regin/collection.rb, line 5
5:     def initialize(*args)
6:       @array = Array.new(*args)
7:     end

Public Instance Methods

+(other) click to toggle source
    # File lib/rack/mount/vendor/regin/regin/collection.rb, line 30
30:     def +(other)
31:       ary = other.is_a?(self.class) ? other.internal_array : other
32:       self.class.new(@array + ary)
33:     end
[](i) click to toggle source
    # File lib/rack/mount/vendor/regin/regin/collection.rb, line 13
13:     def [](i)
14:       @array[i]
15:     end
each() click to toggle source
    # File lib/rack/mount/vendor/regin/regin/collection.rb, line 9
 9:     def each
10:       @array.each{ |item| yield item }
11:     end
first() click to toggle source
    # File lib/rack/mount/vendor/regin/regin/collection.rb, line 22
22:     def first
23:       @array.first
24:     end
include?(char) click to toggle source
    # File lib/rack/mount/vendor/regin/regin/collection.rb, line 45
45:     def include?(char)
46:       any? { |e| e.include?(char) }
47:     end
last() click to toggle source
    # File lib/rack/mount/vendor/regin/regin/collection.rb, line 26
26:     def last
27:       @array.last
28:     end
length() click to toggle source
    # File lib/rack/mount/vendor/regin/regin/collection.rb, line 17
17:     def length
18:       @array.length
19:     end
Also aliased as: size
match(char) click to toggle source
    # File lib/rack/mount/vendor/regin/regin/collection.rb, line 41
41:     def match(char)
42:       to_regexp.match(char)
43:     end
size() click to toggle source
Alias for: length
to_regexp(anchored = false) click to toggle source
    # File lib/rack/mount/vendor/regin/regin/collection.rb, line 35
35:     def to_regexp(anchored = false)
36:       re = to_s(true)
37:       re = "\\A#{re}\\Z" if anchored
38:       Regexp.compile(re, flags)
39:     end

Protected Instance Methods

extract_options(args) click to toggle source
    # File lib/rack/mount/vendor/regin/regin/collection.rb, line 69
69:       def extract_options(args)
70:         if args.last.is_a?(Hash)
71:           return args[0..2], args.last
72:         else
73:           return args, {}
74:         end
75:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.