Sha256: fe80f0aaea3ff4a7f348e4792b1122454d941c20f91c8f6df2d84e3a7ca8dd88

Contents?: true

Size: 209 Bytes

Versions: 1

Compression:

Stored size: 209 Bytes

Contents

class Nydp::Builtin::Times
  include Nydp::Builtin::Base, Singleton

  def name ; "*" ; end

  def builtin_call *args
    if args.empty?
      1
    else
      args.reduce(&:*)
    end._nydp_wrapper
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nydp-0.6.0 lib/nydp/builtin/times.rb