blob: 7f512eb2545f5d2547bf387c9563b766e52f6415 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
module Ievkit
# Extracts options from method arguments
# @private
class Arguments < Array
attr_reader :options
def initialize(args)
@options = args.last.is_a?(::Hash) ? args.pop : {}
super(args)
end
end
end
|