Class: HttpObjects::Parameters::BasicRules::Digit

Inherits:
Base
  • Object
show all
Defined in:
lib/http_objects/parameters/basic_rules.rb

Overview

Public: Mapped to Integer.

DIGIT = <any US-ASCII digit "0".."9">

Instance Attribute Summary

Attributes inherited from Base

#raw, #value

Class Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from HttpObjects::Parameters::BasicRules::Base

Class Method Details

.parse(value) ⇒ Object



38
39
40
# File 'lib/http_objects/parameters/basic_rules.rb', line 38

def self.parse(value)
  self.new(value, value.to_i)
end