Sha256: 339f77780b4af000dcb64d4d16abce652b9ae4660d30f186abdeb6a36571212b
Contents?: true
Size: 386 Bytes
Versions: 3
Compression:
Stored size: 386 Bytes
Contents
class Array def sort_by!(&block) replace(sort_by(&block)) end end class Pathname def write(s) open('w') do |f| f.write(s) end end def hidden? basename.to_s =~ /^\./ end def visible? !hidden? end end class String def shrink(max_length) if length > max_length "#{self[0, max_length - 1]}…" else self end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sdoc_all-1.3.3 | lib/sdoc_all/core_extensions.rb |
sdoc_all-1.3.2 | lib/sdoc_all/core_extensions.rb |
sdoc_all-1.3.1 | lib/sdoc_all/core_extensions.rb |