Sha256: 97a2d05966bf5b06b5130c9e51c2ac7665f1f919cb3c4f01eae3b74d041c2c23
Contents?: true
Size: 560 Bytes
Versions: 1
Compression:
Stored size: 560 Bytes
Contents
module Daru # Defines constants and methods related to configuration module Configuration INSPECT_OPTIONS_KEYS = [ :max_rows, # Terminal :spacing ].freeze # Jupyter DEFAULT_MAX_ROWS = 30 # Terminal DEFAULT_SPACING = 10 attr_accessor(*INSPECT_OPTIONS_KEYS) def configure yield self end def self.extended(base) base.reset_options end def reset_options self.max_rows = DEFAULT_MAX_ROWS self.spacing = DEFAULT_SPACING end end extend Configuration end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
daru-0.3 | lib/daru/configuration.rb |