Parent

Regin::Atom

Attributes

value[R]
ignorecase[R]

Public Class Methods

new(value, options = {}) click to toggle source
   # File lib/rack/mount/vendor/regin/regin/atom.rb, line 5
5:     def initialize(value, options = {})
6:       @value = value
7:       @ignorecase = options[:ignorecase]
8:     end

Public Instance Methods

casefold?() click to toggle source
    # File lib/rack/mount/vendor/regin/regin/atom.rb, line 19
19:     def casefold?
20:       ignorecase ? true : false
21:     end
dup(options = {}) click to toggle source
    # File lib/rack/mount/vendor/regin/regin/atom.rb, line 23
23:     def dup(options = {})
24:       original_options = option_names.inject({}) do |h, m|
25:         h[m.to_sym] = send(m)
26:         h
27:       end
28:       self.class.new(value, original_options.merge(options))
29:     end
literal?() click to toggle source

Returns true if expression could be treated as a literal string.

    # File lib/rack/mount/vendor/regin/regin/atom.rb, line 15
15:     def literal?
16:       false
17:     end
option_names() click to toggle source
    # File lib/rack/mount/vendor/regin/regin/atom.rb, line 10
10:     def option_names
11:       %( ignorecase )
12:     end
to_s(parent = false) click to toggle source
    # File lib/rack/mount/vendor/regin/regin/atom.rb, line 31
31:     def to_s(parent = false)
32:       "#{value}"
33:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.