Class: Motoko::Formatters::Boolean

Inherits:
BaseFormatter show all
Defined in:
lib/motoko/formatters/boolean.rb

Instance Method Summary collapse

Methods inherited from BaseFormatter

#initialize

Constructor Details

This class inherits a constructor from Motoko::Formatters::BaseFormatter

Instance Method Details

#format(value) ⇒ Object



6
7
8
# File 'lib/motoko/formatters/boolean.rb', line 6

def format(value)
  value ? '√' : nil
end