Sha256: 8aa76c5e012a085024496ade3337b9a5ce04ff9aa88231c0224783f79a8e4f0f
Contents?: true
Size: 215 Bytes
Versions: 3
Compression:
Stored size: 215 Bytes
Contents
class Array # Change the first element. # # require 'facet/array/first' # # a = ["a","y","z"] # a.first = "x" # p a #=> ["x","y","z"] # def first=(x) self[0] = x end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
facets-0.7.0 | lib/facet/array/first%3D.rb |
facets-0.7.1 | lib/facet/array/first%3D.rb |
facets-0.7.2 | lib/facet/array/first%3D.rb |