class SnakyHash::Snake

Public Class Methods

new(key_type: :string) click to toggle source
Calls superclass method
# File lib/snaky_hash/snake.rb, line 8
def initialize(key_type: :string)
  super()
  @key_type = key_type
end

Public Instance Methods

included(base) click to toggle source
# File lib/snaky_hash/snake.rb, line 13
def included(base)
  conversions_module = SnakyModulizer.to_mod(@key_type)
  base.include(conversions_module)
end