Class: Ldaptic::Syntaxes::INTEGER
- Defined in:
- lib/ldaptic/syntaxes.rb
Constant Summary
Constants inherited from Abstract
Instance Method Summary collapse
Methods inherited from Abstract
format, #format, #initialize, parse, #printable?
Constructor Details
This class inherits a constructor from Ldaptic::Syntaxes::Abstract
Instance Method Details
#error(string) ⇒ Object
234 235 236 |
# File 'lib/ldaptic/syntaxes.rb', line 234 def error(string) "must be an integer" unless string =~ /\A\d+\z/ end |
#parse(string) ⇒ Object
230 231 232 |
# File 'lib/ldaptic/syntaxes.rb', line 230 def parse(string) string.to_i end |