Sha256: 69a9fe26ae50f16a4206d6190053ce3b88a3686ecdf6a071ae1c0bb9539e2a80

Contents?: true

Size: 227 Bytes

Versions: 145

Compression:

Stored size: 227 Bytes

Contents

module RubyApp

  module Mixins

    module ArrayExtension

      def second_last
        self.length > 1 ?  self[self.length - 2] : nil
      end

    end

  end

end

class Array
  include RubyApp::Mixins::ArrayExtension
end

Version data entries

145 entries across 145 versions & 1 rubygems

Version Path
RubyApp-0.7.16 lib/ruby_app/mixins/array_extension.rb
RubyApp-0.7.15 lib/ruby_app/mixins/array_extension.rb
RubyApp-0.7.14 lib/ruby_app/mixins/array_extension.rb
RubyApp-0.7.13 lib/ruby_app/mixins/array_extension.rb
RubyApp-0.7.12 lib/ruby_app/mixins/array_extension.rb
RubyApp-0.7.11 lib/ruby_app/mixins/array_extension.rb
RubyApp-0.7.10 lib/ruby_app/mixins/array_extension.rb
RubyApp-0.7.9 lib/ruby_app/mixins/array_extension.rb
RubyApp-0.7.5 lib/ruby_app/mixins/array_extension.rb
RubyApp-0.7.4 lib/ruby_app/mixins/array_extension.rb
RubyApp-0.7.3 lib/ruby_app/mixins/array_extension.rb
RubyApp-0.7.2 lib/ruby_app/mixins/array_extension.rb
RubyApp-0.7.1 lib/ruby_app/mixins/array_extension.rb
RubyApp-0.7.0 lib/ruby_app/mixins/array_extension.rb
RubyApp-0.6.71 lib/ruby_app/mixins/array_extension.rb
RubyApp-0.6.70 lib/ruby_app/mixins/array_extension.rb
RubyApp-0.6.69 lib/ruby_app/mixins/array_extension.rb
RubyApp-0.6.68 lib/ruby_app/mixins/array_extension.rb
RubyApp-0.6.67 lib/ruby_app/mixins/array_extension.rb
RubyApp-0.6.66 lib/ruby_app/mixins/array_extension.rb