Class: Proc

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

Instance Method Summary collapse

Instance Method Details

#async?Boolean

Returns:



69
70
71
# File 'opal/stdlib/await.rb', line 69

def async?
  `self instanceof AsyncFunction`
end

#ruby2_keywordsObject

call-seq: proc.ruby2_keywords -> proc

Does nothing and just returns the receiver.



34
35
36
# File 'opal/stdlib/ruby2_keywords.rb', line 34

def ruby2_keywords
  self
end

#to_nObject



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

def to_n
  self
end