Class: Usher::Route::Variable
- Inherits:
-
Object
- Object
- Usher::Route::Variable
- Defined in:
- lib/usher/route/variable.rb
Defined Under Namespace
Modules: CaseEqualsValidator, ProcValidator Classes: Glob, Greedy, Single
Instance Attribute Summary collapse
-
#default_value ⇒ Object
Returns the value of attribute default_value.
-
#look_ahead ⇒ Object
Returns the value of attribute look_ahead.
-
#look_ahead_priority ⇒ Object
Returns the value of attribute look_ahead_priority.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#regex_matcher ⇒ Object
readonly
Returns the value of attribute regex_matcher.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#validator ⇒ Object
readonly
Returns the value of attribute validator.
Instance Method Summary collapse
Instance Attribute Details
#default_value ⇒ Object
Returns the value of attribute default_value.
5 6 7 |
# File 'lib/usher/route/variable.rb', line 5 def default_value @default_value end |
#look_ahead ⇒ Object
Returns the value of attribute look_ahead.
5 6 7 |
# File 'lib/usher/route/variable.rb', line 5 def look_ahead @look_ahead end |
#look_ahead_priority ⇒ Object
Returns the value of attribute look_ahead_priority.
5 6 7 |
# File 'lib/usher/route/variable.rb', line 5 def look_ahead_priority @look_ahead_priority end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/usher/route/variable.rb', line 4 def name @name end |
#regex_matcher ⇒ Object (readonly)
Returns the value of attribute regex_matcher.
4 5 6 |
# File 'lib/usher/route/variable.rb', line 4 def regex_matcher @regex_matcher end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
4 5 6 |
# File 'lib/usher/route/variable.rb', line 4 def type @type end |
#validator ⇒ Object (readonly)
Returns the value of attribute validator.
4 5 6 |
# File 'lib/usher/route/variable.rb', line 4 def validator @validator end |
Instance Method Details
#==(o) ⇒ Object
42 43 44 |
# File 'lib/usher/route/variable.rb', line 42 def ==(o) o && (o.class == self.class && o.name == @name && o.validator == @validator) end |
#valid!(val) ⇒ Object
23 24 |
# File 'lib/usher/route/variable.rb', line 23 def valid!(val) end |