Class: UrlMount::Segment::Conditional

### Home Classes Methods

### In Files

- lib/url_mount.rb

### Parent

UrlMount::Segment::Base

### Namespace

- CLASS UrlMount::Segment::Conditional::UnrequiredUrlMount

### Methods

- ::new
- #optional_variable_segments
- #optional_variables
- #required_variables
- #to_s

### Class/Module Index

Quicksearch

- UrlMount
- UrlMount::Segment
- UrlMount::Segment::Base
- UrlMount::Segment::Conditional
- UrlMount::Segment::Conditional::UnrequiredUrlMount
- UrlMount::Segment::Delimeter
- UrlMount::Segment::Static
- UrlMount::Segment::Variable
- UrlMount::Ungeneratable

No matching classes.

# UrlMount::Segment::Conditional

### Public Class Methods

new(*args) click to toggle source

    # File lib/url_mount.rb, line 186
    def initialize(*args)
      @url_mount = UnrequiredUrlMount.new(*args)
    end

### Public Instance Methods

optional_variable_segments() click to toggle source

    # File lib/url_mount.rb, line 190
    def optional_variable_segments
      (@url_mount.required_variable_segments + @url_mount.optional_variable_segments)
    end

optional_variables() click to toggle source

    # File lib/url_mount.rb, line 195
    def optional_variables
      (@url_mount.required_variables + @url_mount.optional_variables)
    end

required_variables() click to toggle source

    # File lib/url_mount.rb, line 194
    def required_variables; []; end

to_s(opts = {}) click to toggle source

    # File lib/url_mount.rb, line 199
    def to_s(opts = {})
      @url_mount.to_s(opts)
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.