Sha256: 1747080701d7411d3fec790fedb568c6b24d35b9c07c30d3602e747e26b7efa6

Contents?: true

Size: 157 Bytes

Versions: 2

Compression:

Stored size: 157 Bytes

Contents

module Docxtor2
  module ObjectUtils
    def find_argument(args, klass, default = nil)
      args.find { |arg| arg.is_a? klass } || default
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
docxtor2-0.0.9 lib/docxtor2/object_utils.rb
docxtor2-0.1.0 lib/docxtor2/object_utils.rb