UrlMount::Segment::Base
# File lib/url_mount.rb, line 166 def initialize(name, options) @name, @options = name.to_sym, (options || {}) end
# File lib/url_mount.rb, line 170 def required_variable_segments [self] end
# File lib/url_mount.rb, line 174 def to_s(opts = {}) item = opts.delete(name) || @options[name] item.respond_to?(:call) ? item.call : item end
[Validate]
Generated with the Darkfish Rdoc Generator 2.