module Hugger::Huggable

String @since 0.0.1

Public Class Methods

included(klass) click to toggle source
Calls superclass method
# File lib/hugger/huggable.rb, line 5
def self.included(klass)
  super
  klass.extend(ClassMethods)
end

Public Instance Methods

hug(value) click to toggle source

Decorates the object using the Hugger classes @param [Object]

# File lib/hugger/huggable.rb, line 12
def hug(value)
  case value
  when ::String, String
    Hugger::String.new(value)
  end
end