Sha256: b65f5a29dfa9794475456b9ce0ff71f38c479e72feaa9cde892db4f431f019e3

Contents?: true

Size: 310 Bytes

Versions: 20

Compression:

Stored size: 310 Bytes

Contents

##
# add Rails-style Array#extract_options! method
#
module ExtJS
  module CoreExtensions
    module Array
      module ExtractOptions
        def extract_options!
          last.is_a?(::Hash) ? pop : {}
        end
      end
    end
  end
end
Array.send(:include, ExtJS::CoreExtensions::Array::ExtractOptions)

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
extjs-mvc-0.3.10 lib/core_ext/array/extract_options.rb
extjs-mvc-0.3.9 lib/core_ext/array/extract_options.rb
extjs-mvc-0.3.8 lib/core_ext/array/extract_options.rb
extjs-mvc-0.3.7 lib/core_ext/array/extract_options.rb
extjs-mvc-0.3.6 lib/core_ext/array/extract_options.rb
extjs-mvc-0.3.5 lib/core_ext/array/extract_options.rb
extjs-mvc-0.3.4 lib/core_ext/array/extract_options.rb
extjs-mvc-0.3.3 lib/core_ext/array/extract_options.rb
extjs-mvc-0.3.2 lib/core_ext/array/extract_options.rb
extjs-mvc-0.3.1 lib/core_ext/array/extract_options.rb
extjs-mvc-0.3.0 lib/core_ext/array/extract_options.rb
extjs-mvc-0.2.8 lib/core_ext/array/extract_options.rb
extjs-mvc-0.2.7 lib/core_ext/array/extract_options.rb
extjs-mvc-0.2.6 lib/core_ext/array/extract_options.rb
extjs-mvc-0.2.5 lib/core_ext/array/extract_options.rb
extjs-mvc-0.2.4 lib/core_ext/array/extract_options.rb
extjs-mvc-0.2.3 lib/core_ext/array/extract_options.rb
extjs-mvc-0.2.2 lib/core_ext/array/extract_options.rb
extjs-mvc-0.2.1 lib/core_ext/array/extract_options.rb
extjs-mvc-0.2.0 lib/core_ext/array/extract_options.rb