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 08:54:07 +03:00
Code
Issues
Projects
Releases
Wiki
Activity
972c0c8563
semantic
/
preludes
/
ruby.rb
14 lines
127 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
)
__builtin_print
(
obj
)
end
Reference in New Issue
Copy Permalink