Sha256: 8bbf96e9a6bc25629a1fc00bc0a5d0b5dacfef6c05d13007539c326fc690b572
Contents?: true
Size: 472 Bytes
Versions: 4
Compression:
Stored size: 472 Bytes
Contents
module DiscountNetwork class Base def self.method_missing(method_name, *arguments, &block) if new.respond_to?(method_name, include_private: false) new.send(method_name, *arguments, &block) else super end end private def build_array_params(array_params) array_params = [array_params].flatten array_params.map.each_with_index do |attribute, index| [index, attribute] end.to_h end end end
Version data entries
4 entries across 4 versions & 1 rubygems