class KaiserRuby::Mysterious
Rockstar introduces a new type that is similar to JS' undefined Ruby obviously doesn't have that so we have to make our own
Public Instance Methods
!()
click to toggle source
# File lib/kaiser_ruby/refinements.rb, line 23 def ! true end
!=(other)
click to toggle source
# File lib/kaiser_ruby/refinements.rb, line 33 def !=(other) !self.==(other) end
+(other)
click to toggle source
# File lib/kaiser_ruby/refinements.rb, line 11 def +(other) 'mysterious' + other if other.is_a?(String) end
-(other)
click to toggle source
# File lib/kaiser_ruby/refinements.rb, line 15 def -(other) 'mysterious' + other if other.is_a?(String) end
==(other)
click to toggle source
# File lib/kaiser_ruby/refinements.rb, line 27 def ==(other) return true if other.is_a?(KaiserRuby::Mysterious) false end
to_bool()
click to toggle source
# File lib/kaiser_ruby/refinements.rb, line 7 def to_bool false end
to_s()
click to toggle source
# File lib/kaiser_ruby/refinements.rb, line 19 def to_s 'mysterious' end