Sha256: bd081519779e771644a2ec2efd9cd8b4577080492a223e497fa5a7b092c19e38
Contents?: true
Size: 293 Bytes
Versions: 1
Compression:
Stored size: 293 Bytes
Contents
class Nydp::Builtin::TypeOf include Nydp::Builtin::Base, Singleton def builtin_call arg if arg == nil nil elsif arg.respond_to?(:nydp_type) arg.nydp_type.to_sym elsif arg.is_a? Numeric :number else "ruby/#{arg.class.name}".to_sym end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nydp-0.6.0 | lib/nydp/builtin/type_of.rb |