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:



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

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



456
457
458
# File 'opal/stdlib/native.rb', line 456

def to_n
  self
end