Core extensions

some come from ActiveSupport.

Usage

require "tagen/core" # include "time", "date"

From Tagen

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[!]