Skip to content
This repository
Browse code

Alias inspect to to_s for nil, true & false.

  • Loading branch information...
commit 65fcf83d0102a1ca17a87b48bd5e2f7d19f16240 1 parent 67cae77
Christopher Bertels authored
2  lib/false_class.fy
@@ -37,6 +37,8 @@ class FalseClass {
37 37 "false"
38 38 }
39 39
  40 + alias_method: 'inspect for: 'to_s
  41 +
40 42 def to_a {
41 43 "Returns an empty @Array@."
42 44 []
2  lib/nil_class.fy
@@ -69,6 +69,8 @@ class NilClass {
69 69 ""
70 70 }
71 71
  72 + alias_method: 'inspect for: 'to_s
  73 +
72 74 def to_a {
73 75 """
74 76 @return An empty @Array@.
2  lib/true_class.fy
@@ -52,6 +52,8 @@ class TrueClass {
52 52 "true"
53 53 }
54 54
  55 + alias_method: 'inspect for: 'to_s
  56 +
55 57 def to_a {
56 58 """
57 59 @return An empty @Array@.

0 comments on commit 65fcf83

Please sign in to comment.
Something went wrong with that request. Please try again.