Class: FalseClass

Inherits:
Object
  • Object
show all
Defined in:
lib/santas_little_helper.rb

Instance Method Summary collapse

Instance Method Details

#to_hObject

Humanize. to_s returns “false”.



78
79
80
# File 'lib/santas_little_helper.rb', line 78

def to_h
  "no"
end

#to_iObject

Rails conventions for boolean / tinyint



74
75
76
# File 'lib/santas_little_helper.rb', line 74

def to_i
  0
end

#to_teenagerObject

Little obnoxious teenager.



82
83
84
# File 'lib/santas_little_helper.rb', line 82

def to_teenager
  "Can't you leave me alone? I don't have anything!"
end