class Intellihash::Configuration

Attributes

default_format[R]
enabled[RW]
intelligent_by_default[RW]

Public Class Methods

new() click to toggle source
# File lib/intellihash/configuration.rb, line 31
def initialize
  @default_format          = :symbol
  @enabled                 = false
  @intelligent_by_default  = false
end

Public Instance Methods

default_format=(other) click to toggle source
# File lib/intellihash/configuration.rb, line 37
def default_format=(other)
  @default_format = Intellihash::Mixins::FORMATTER.member?(other) ? other : :symbol
end