File tree Expand file tree Collapse file tree 2 files changed +2
-14
lines changed
src/main/ruby/truffleruby/core Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Original file line number Diff line number Diff line change 27
27
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
28
29
29
class FalseClass
30
-
31
30
def to_s
32
31
'false'
33
32
end
34
-
35
- def inspect
36
- # Call #to_s rather than alias it so that people can change #to_s if they
37
- # wish.
38
- to_s
39
- end
33
+ alias_method :inspect , :to_s
40
34
41
35
alias_method :=== , :===
42
36
Original file line number Diff line number Diff line change 27
27
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
28
29
29
class TrueClass
30
-
31
30
def to_s
32
31
'true'
33
32
end
34
-
35
- def inspect
36
- # Call #to_s rather than alias it so that people can change #to_s if they
37
- # wish.
38
- to_s
39
- end
33
+ alias_method :inspect , :to_s
40
34
41
35
alias_method :=== , :===
42
36
You can’t perform that action at this time.
0 commit comments