Core extensions
some come from ActiveSupport.
Usage
require "tagen/core" # include "time", "date"
From Tagen
-
#linux? win32?
sh
blk2method
String.hexdigits octdigits letters uppercase lowercase
-
#extract_extend_options! extract_options!
#append
#delete(*values) delete_at
support delete more than one values
Process.exists?(pid)
Marshal.load dump add Pa support
Pa a path library
PyFormat a string format libraray
From pd
- Kernel#pd phr
From ActiveSupport
see ActiveSupport Core Extensions Guide
Object #blank? present? presence try
Module #mattr_x
Class #cattr_x
String #strip_heredoc at from to
Numeric #bytes kilobytes megabytes gigabytes terabytes petabytes exabytes
Enumerable #sum many? exclude?
Array #from to second third fourth fifth
Array.wrap
Hash #deep_merge[!]