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



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

def to_n
  self
end