File: behavior.rb

package info (click to toggle)
ruby-rqrcode 0.4.2-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 248 kB
  • ctags: 87
  • sloc: ruby: 987; makefile: 2
file content (12 lines) | stat: -rw-r--r-- 247 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
module RQRCode
  module CoreExtensions #:nodoc:
    module Array #:nodoc:
      module Behavior
        def extract_options!
          last.is_a?(::Hash) ? pop : {}
        end unless [].respond_to?(:extract_options!)
      end
    end
  end
end