Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/cancan_strong_parameters/controller.rb
Instance Method Summary collapse
Instance Method Details
#is_hex? ⇒ Boolean
205 206 207 |
# File 'lib/cancan_strong_parameters/controller.rb', line 205 def is_hex? !!(self =~ /^[0-9a-f]+$/) end |
#is_i? ⇒ Boolean
201 202 203 |
# File 'lib/cancan_strong_parameters/controller.rb', line 201 def is_i? !!(self =~ /^[-+]?[0-9]+$/) end |