Sha256: 61eb7895dde22f84bf0cabbdcea02d4eeefa5db2434951f5f9cae30d6cb9f779
Contents?: true
Size: 331 Bytes
Versions: 1
Compression:
Stored size: 331 Bytes
Contents
# frozen_string_literal: true require_relative "numerictth2/version" module Numerictth2 def numerictth2(chars, filler = ' ') self.rjust(chars, filler) end end class String include Numerictth2 end class Array def split_by_partiy partition(&:even?) end end #even, odd = [1,2,3,4].split_by_partiy // even // odd
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
numerictth2-0.1.1 | lib/numerictth2.rb |