Class: Sinatra::ParamValidator::Identifier

Inherits:
Object
  • Object
show all
Defined in:
lib/sinatra/param_validator/identifier.rb

Overview

Class to hold a validator identifier plus arguments

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#argsObject (readonly)

Returns the value of attribute args.



7
8
9
# File 'lib/sinatra/param_validator/identifier.rb', line 7

def args
  @args
end

#identifierObject (readonly)

Returns the value of attribute identifier.



7
8
9
# File 'lib/sinatra/param_validator/identifier.rb', line 7

def identifier
  @identifier
end