Sha256: f1b4c9aa5cfeb7d46d73a512842e9dbb3b1cd9075429215fb2fa599a46b8f0d5

Contents?: true

Size: 70 Bytes

Versions: 26

Compression:

Stored size: 70 Bytes

Contents

class Array
  def first_or_self
    size > 1 ? self : first
  end
end

Version data entries

26 entries across 26 versions & 3 rubygems

Version Path
calagator-1.0.0 vendor/gems/mofo-0.2.8/lib/microformat/array.rb
grokus-1.0.0.9 vendor/gems/mofo-0.2.8/lib/microformat/array.rb
grokus-1.0.0.8 vendor/gems/mofo-0.2.8/lib/microformat/array.rb
grokus-1.0.0.7 vendor/gems/mofo-0.2.8/lib/microformat/array.rb
grokus-1.0.0.6 vendor/gems/mofo-0.2.8/lib/microformat/array.rb
grokus-1.0.0.5 vendor/gems/mofo-0.2.8/lib/microformat/array.rb
grokus-1.0.0.3 vendor/gems/mofo-0.2.8/lib/microformat/array.rb
grokus-1.0.0.2 vendor/gems/mofo-0.2.8/lib/microformat/array.rb
grokus-1.0.0.1 vendor/gems/mofo-0.2.8/lib/microformat/array.rb
calagator-1.0.0.rc3 vendor/gems/mofo-0.2.8/lib/microformat/array.rb
mofo-0.2.3 ./lib/microformat/array.rb
mofo-0.2.4 ./lib/microformat/array.rb
mofo-0.2.5 ./lib/microformat/array.rb
mofo-0.2.6 ./lib/microformat/array.rb
mofo-0.2.1 lib/microformat/array.rb
mofo-0.2.10 ./lib/microformat/array.rb
mofo-0.2.11 ./lib/microformat/array.rb
mofo-0.2.12 ./lib/microformat/array.rb
mofo-0.2.13 ./lib/microformat/array.rb
mofo-0.2.14 ./lib/microformat/array.rb