class String
Public Instance Methods
is_i?()
click to toggle source
# File lib/fluent/plugin/out_field_multiregex.rb, line 2 def is_i? /\A[-+]?\d+\z/ === self end
nan?()
click to toggle source
# File lib/fluent/plugin/out_field_multiregex.rb, line 5 def nan? self !~ /^\s*[+-]?((\d+_?)*\d+(\.(\d+_?)*\d+)?|\.(\d+_?)*\d+)(\s*|([eE][+-]?(\d+_?)*\d+)\s*)$/ end