mirror of
https://github.com/mistergibson/gxg-web-client.git
synced 2026-08-15 03:26:00 -07:00
25 lines
297 B
Ruby
25 lines
297 B
Ruby
class TrueClass
|
|
def &(other)
|
|
!!other
|
|
end
|
|
|
|
def ^(other)
|
|
!other
|
|
end
|
|
|
|
def |(other)
|
|
true
|
|
end
|
|
|
|
def to_s
|
|
"true"
|
|
end
|
|
|
|
def inspect
|
|
# Call #to_s rather than alias it so that people can change #to_s if they
|
|
# wish. Yes, sounds dumb.
|
|
to_s
|
|
end
|
|
end
|
|
|
|
TRUE = true
|