Module: Docxtor2::ObjectUtils
- Included in:
- Package::Document::Element
- Defined in:
- lib/docxtor2/object_utils.rb
Instance Method Summary collapse
Instance Method Details
#find_argument(args, klass, default = nil) ⇒ Object
3 4 5 |
# File 'lib/docxtor2/object_utils.rb', line 3 def find_argument(args, klass, default = nil) args.find { |arg| arg.is_a? klass } || default end |