class Motoko::Formatters::BaseFormatter
Public Class Methods
new(options = {})
click to toggle source
# File lib/motoko/formatters/base_formatter.rb, line 6 def initialize(options = {}) end
Public Instance Methods
format(value)
click to toggle source
# File lib/motoko/formatters/base_formatter.rb, line 8 def format(value) case value when Array value.join("\n") when Hash value.keys.join("\n") else value.to_s end end