Class: Rain::Route
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#verbs ⇒ Object
readonly
Returns the value of attribute verbs.
Instance Method Summary collapse
-
#initialize(path: String, verbs: Array[String | nil] | []) ⇒ Route
constructor
A new instance of Route.
Constructor Details
#initialize(path: String, verbs: Array[String | nil] | []) ⇒ Route
Returns a new instance of Route.
9 10 11 12 |
# File 'lib/router/route.rb', line 9 def initialize(path: String, verbs: Array[String | nil] | []) @path = path @verbs = verbs end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
7 8 9 |
# File 'lib/router/route.rb', line 7 def path @path end |
#verbs ⇒ Object (readonly)
Returns the value of attribute verbs.
7 8 9 |
# File 'lib/router/route.rb', line 7 def verbs @verbs end |