Sha256: 8667c00387a38ccaebbb3cdbab252818c4c8d8a57110a90d07775c127f7f93bf

Contents?: true

Size: 168 Bytes

Versions: 3

Compression:

Stored size: 168 Bytes

Contents

def number?(type)
  %w[integer float].include?(type).then { puts 1 }
end
number?('string')

__END__
# Classes
class Object
  private
  def number?: (String) -> nil
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
typeprof-0.9.2 smoke/type_var.rb
typeprof-0.9.1 smoke/type_var.rb
typeprof-0.9.0 smoke/type_var.rb