Class: FalseClass

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

Instance Method Summary collapse

Instance Method Details

#format_by(fmt = 'T') ⇒ Object



15
16
17
18
19
20
21
22
23
24
# File 'lib/fat_core/boolean.rb', line 15

def format_by(fmt = 'T')
  case fmt
  when /^[tf]/i
    'F'
  when /^[yn]/i
    'N'
  else
    'F'
  end
end