module AssociateRB::ObjectExtension

Public Instance Methods

to(obj) click to toggle source

Creates a key-value pair

@param obj [Object] the value @return [Hash] the key-value pair, with the current object being the key

# File lib/associate_rb/extensions/object_extension.rb, line 7
def to(obj)
  { self => obj }
end