module JamfRubyExtensions::String::Predicates
Constants
- FLOAT_RE
- INTEGER_RE
Public Instance Methods
j_float?()
click to toggle source
Is this string also a floar? (i.e. it consists only of numberic digits)
@return [Boolean]
# File lib/jamf/ruby_extensions/string/predicates.rb 50 def j_float? 51 self =~ FLOAT_RE ? true : false 52 end
Also aliased as: jss_float?
j_integer?()
click to toggle source
Is this string also an integer? (i.e. it consists only of numberic digits, maybe with a dash in front)
@return [Boolean]
# File lib/jamf/ruby_extensions/string/predicates.rb 40 def j_integer? 41 self =~ INTEGER_RE ? true : false 42 end
Also aliased as: jss_integer?