Class: Signpost::Sign::Flat::Any
- Inherits:
-
Path
show all
- Defined in:
- lib/signpost/sign/flat/path.rb
Instance Method Summary
collapse
Methods inherited from Path
#as, #constraint, #params, #to
#capture, #except, #expose
Instance Method Details
#http_methods ⇒ Object
107
108
109
|
# File 'lib/signpost/sign/flat/path.rb', line 107
def http_methods
@http_methods || Signpost::SUPPORTED_METHODS
end
|
#via(*methods) ⇒ Object
103
104
105
|
# File 'lib/signpost/sign/flat/path.rb', line 103
def via(*methods)
@http_methods = methods.map { |m| m.to_s.upcase }.keep_if { |m| Signpost::SUPPORTED_METHODS.include?(m) }.to_set
end
|