Class: Sinatra::ParamValidator::Identifier
- Inherits:
-
Object
- Object
- Sinatra::ParamValidator::Identifier
- Defined in:
- lib/sinatra/param_validator/identifier.rb
Overview
Class to hold a validator identifier plus arguments
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#identifier ⇒ Object
readonly
Returns the value of attribute identifier.
Instance Method Summary collapse
-
#initialize(identifier, *args) ⇒ Identifier
constructor
A new instance of Identifier.
Constructor Details
#initialize(identifier, *args) ⇒ Identifier
Returns a new instance of Identifier.
9 10 11 12 |
# File 'lib/sinatra/param_validator/identifier.rb', line 9 def initialize(identifier, *args) @identifier = identifier @args = args end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
7 8 9 |
# File 'lib/sinatra/param_validator/identifier.rb', line 7 def args @args end |
#identifier ⇒ Object (readonly)
Returns the value of attribute identifier.
7 8 9 |
# File 'lib/sinatra/param_validator/identifier.rb', line 7 def identifier @identifier end |