This website requires JavaScript.
Explore
Help
Sign In
github
/
semantic
Watch
1
Star
1
Fork
0
You've already forked semantic
mirror of
https://github.com/github/semantic.git
synced
2024-11-24 00:42:33 +03:00
Code
Issues
Projects
Releases
Wiki
Activity
ea1b44085a
semantic
/
preludes
/
ruby.rb
14 lines
128 B
Ruby
Raw
Normal View
History
Unescape
Escape
First stab at a prelude that enables subclassing. This appears to work, though the evaluation order in evaluatePreludedRubyFile is off somehow.
2018-03-21 17:52:37 +03:00
class
Object
def
new
self
end
def
inspect
return
"
<object>
"
end
end
Attempt to define puts for Ruby using the print builtin.
2018-05-09 23:30:11 +03:00
def
puts
(
obj
)
Prefix builtins with __semantic_.
2018-05-10 17:49:45 +03:00
__semantic_print
(
obj
)
Attempt to define puts for Ruby using the print builtin.
2018-05-09 23:30:11 +03:00
end
Reference in New Issue
Copy Permalink