We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent 1da9826 commit 0541825Copy full SHA for 0541825
opal/core/basic_object.rb
@@ -6,6 +6,10 @@ def ==(other)
6
`self === other`
7
end
8
9
+ def __id__
10
+ `self._id || (self._id = Opal.uid())`
11
+ end
12
+
13
def __send__(symbol, *args, &block)
14
%x{
15
var func = self['$' + symbol]
opal/core/kernel.rb
@@ -384,9 +384,7 @@ def nil?
384
false
385
386
387
- def object_id
388
- `self._id || (self._id = Opal.uid())`
389
- end
+ alias object_id __id__
390
391
def printf(*args)
392
if args.length > 0
0 commit comments