Method: Kernel#block_given?

Defined in:
lib/source/ruby.rb

#block_given?(x) ⇒ Boolean

FIX: Incomplete

Returns:

  • (Boolean)


1306
1307
1308
# File 'lib/source/ruby.rb', line 1306

def block_given?(x)
  `typeof(x)=='function'`
end