Class: String
- Defined in:
- lib/jamf/ruby_extensions/string.rb
Overview
include the modules loaded above
Instance Method Summary collapse
-
#j_float? ⇒ Boolean
(also: #jss_float?)
included
from JamfRubyExtensions::String::Predicates
Is this string also a floar? (i.e. it consists only of numberic digits).
-
#j_integer? ⇒ Boolean
(also: #jss_integer?)
included
from JamfRubyExtensions::String::Predicates
Is this string also an integer? (i.e. it consists only of numberic digits, maybe with a dash in front).
-
#j_to_bool ⇒ Boolean?
(also: #jss_to_bool)
included
from JamfRubyExtensions::String::Conversions
Convert the strings “true” and “false” (after stripping whitespace and downcasing) to TrueClass and FalseClass respectively.
-
#j_to_pathname ⇒ Pathname
(also: #jss_to_pathname)
included
from JamfRubyExtensions::String::Conversions
Convert a String to a Pathname object.
-
#j_to_time ⇒ Time
(also: #jss_to_time)
included
from JamfRubyExtensions::String::Conversions
Convert a string to a Time object.
-
#j_to_timestamp ⇒ Time
included
from JamfRubyExtensions::String::Conversions
Convert a string to a Jamf::Timestamp object.
Instance Method Details
#j_float? ⇒ Boolean Also known as: jss_float? Originally defined in module JamfRubyExtensions::String::Predicates
Is this string also a floar? (i.e. it consists only of numberic digits)
#j_integer? ⇒ Boolean Also known as: jss_integer? Originally defined in module JamfRubyExtensions::String::Predicates
Is this string also an integer? (i.e. it consists only of numberic digits, maybe with a dash in front)
#j_to_bool ⇒ Boolean? Also known as: jss_to_bool Originally defined in module JamfRubyExtensions::String::Conversions
Convert the strings “true” and “false” (after stripping whitespace and downcasing) to TrueClass and FalseClass respectively
Return nil if any other string.
#j_to_pathname ⇒ Pathname Also known as: jss_to_pathname Originally defined in module JamfRubyExtensions::String::Conversions
Convert a String to a Pathname object
#j_to_time ⇒ Time Also known as: jss_to_time Originally defined in module JamfRubyExtensions::String::Conversions
Convert a string to a Time object
#j_to_timestamp ⇒ Time Originally defined in module JamfRubyExtensions::String::Conversions
Convert a string to a Jamf::Timestamp object