Class: TermuxRubyApi::Utils::Xformer

Inherits:
Object
  • Object
show all
Defined in:
lib/termux_ruby_api/utils/xformer.rb

Class Method Summary collapse

Class Method Details

.xform(object, args) ⇒ Object



4
5
6
7
8
# File 'lib/termux_ruby_api/utils/xformer.rb', line 4

def self.xform(object, args)
  collection = object.is_a?(Array) ? object : [object]
  collection.each { |i| xform_item(i, args) }
  object
end