Class: Proc

Inherits:
Object show all
Defined in:
opal/stdlib/await.rb,
opal/stdlib/native.rb

Instance Method Summary collapse

Instance Method Details

#async?Boolean

Returns:



74
75
76
# File 'opal/stdlib/await.rb', line 74

def async?
  `self instanceof AsyncFunction`
end

#to_nObject



453
454
455
# File 'opal/stdlib/native.rb', line 453

def to_n
  self
end