Sha256: 5c5575b289a71adddb24816f08266c37bbbacaa62864b7065d9a220e1a34669c

Contents?: true

Size: 244 Bytes

Versions: 1

Compression:

Stored size: 244 Bytes

Contents

require "tabajara_calculator/version"

module TabajaraCalculator
  class TabajaraCalculator
    def somar(*args)
      if args.first.instance_of?(String)
        return eval(args.first)
      end

      return args.reduce(:+)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tabajara_calculator-0.1.0 lib/tabajara_calculator.rb