Class: Regin::Atom

### Home Classes Methods

### In Files

- lib/rack/mount/vendor/regin/regin/atom.rb

### Parent

Object

### Methods

- ::new
- #casefold?
- #dup
- #literal?
- #option_names
- #to_s

### Class/Module Index

Quicksearch

- Rack
- Rack::Mount
- Rack::Mount::Analysis
- Rack::Mount::Analysis::Splitting
- Rack::Mount::Analysis::Splitting::Key
- Rack::Mount::GeneratableRegexp
- Rack::Mount::GeneratableRegexp::InstanceMethods
- Rack::Mount::RegexpWithNamedGroups
- Rack::Mount::Route
- Rack::Mount::RouteSet
- Rack::Mount::RoutingError
- Rack::Mount::Strexp
- Rack::Mount::StrexpParser
- Rack::Mount::StrexpParser::ScanError
- Rack::Mount::Utils
- Regin
- Regin::Alternation
- Regin::Anchor
- Regin::Atom
- Regin::Character
- Regin::CharacterClass
- Regin::Collection
- Regin::Expression
- Regin::Group
- Regin::Options
- Regin::Parser
- Regin::Parser::ScanError

No matching classes.

# Regin::Atom

### Attributes

ignorecase[R]
value[R]

### Public Class Methods

new(value, options = {}) click to toggle source

    # File lib/rack/mount/vendor/regin/regin/atom.rb, line 5
    def initialize(value, options = {})
      @value = value
      @ignorecase = options[:ignorecase]
    end

### Public Instance Methods

casefold?() click to toggle source

    # File lib/rack/mount/vendor/regin/regin/atom.rb, line 19
    def casefold?
      ignorecase ? true : false
    end

dup(options = {}) click to toggle source

    # File lib/rack/mount/vendor/regin/regin/atom.rb, line 23
    def dup(options = {})
      original_options = option_names.inject({}) do |h, m|
        h[m.to_sym] = send(m)
        h
      end
      self.class.new(value, original_options.merge(options))
    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
    def literal?
      false
    end

option_names() click to toggle source

    # File lib/rack/mount/vendor/regin/regin/atom.rb, line 10
    def option_names
      %( ignorecase )
    end

to_s(parent = false) click to toggle source

    # File lib/rack/mount/vendor/regin/regin/atom.rb, line 31
    def to_s(parent = false)
      "#{value}"
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.