Sha256: cc3a72b45a1b954dc306183951b5124d3bb25d5867526339e208b7f5644c31d9
Contents?: true
Size: 300 Bytes
Versions: 1
Compression:
Stored size: 300 Bytes
Contents
module Nydp::Builtin class ToInteger include Nydp::Builtin::Base, Singleton def builtin_call arg arg = n2r arg if arg.respond_to? :to_i arg.to_i elsif arg.respond_to? :to_time arg.to_time.to_i else arg.to_s.to_i end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nydp-0.6.0 | lib/nydp/builtin/to_integer.rb |