Sha256: a4f6d585216359742814ff80a2c7dc1ead87340a38e109b7cacde8229c86bccc
Contents?: true
Size: 588 Bytes
Versions: 4
Compression:
Stored size: 588 Bytes
Contents
module Putter class Configuration attr_accessor :print_strategy attr_writer :ignore_methods_from, :methods_whitelist def initialize @ignore_methods_from = [Object] @print_strategy = PrintStrategy::Default @methods_whitelist = [] end def ignore_methods_from _convert_to_array(@ignore_methods_from) end def methods_whitelist _convert_to_array(@methods_whitelist) end def _convert_to_array(val) if val.nil? [] elsif !val.is_a?(Array) [val] else val end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
putter-0.4.0 | lib/putter/configuration.rb |
putter-0.3.0 | lib/putter/configuration.rb |
putter-0.2.1 | lib/putter/configuration.rb |
putter-0.2.0 | lib/putter/configuration.rb |