Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/basic_youtube.rb

Instance Method Summary collapse

Instance Method Details

#number?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/basic_youtube.rb', line 22

def number?
  true if Float(self) rescue false
end