lib/puppet_x/coi/jboss/functions/to_i.rb
# PRIVATE INTERNAL FUNCTION. Casts any value to integer
#
# @param args [Array] should be only one argument in array
# @return [int] casted value to integer of input value
PRIVATE INTERNAL FUNCTION. Casts any value to integer
PRIVATE INTERNAL FUNCTION . Casts any value to integer
def to_i(args)
      validate_method_parameters('jboss_to_i', args) do
        { :desc => '1', :condition => args.size != 1 }
      end
      args[0].to_s.to_i
    end
def to_i ( args ) validate_method_parameters ( 'jboss_to_i' , args ) do { :desc => '1' , :condition => args . size != 1 } end args [ 0 ] . to_s . to_i end
PRIVATE INTERNAL FUNCTION.
PRIVATE INTERNAL FUNCTION .
casted value to integer of input value
casted value to integer of input value
int
args
should be only one argument in array
should be only one argument in array