lib/linked_in/mash.rb
# returns a Date if we have year, month and day, and no conflicting key
returns a Date if we have year, month and day, and no conflicting key
returns a Date if we have year month and day and no conflicting key
def to_date
      if !self.has_key?('to_date') && contains_date_fields?
        Date.civil(self.year, self.month, self.day)
      else
        super
      end
    end
def to_date if ! self . has_key? ( 'to_date' ) && contains_date_fields? Date . civil ( self . year , self . month , self . day ) else super end end
returns a Date if we have year, month and day, and no conflicting key
returns a Date if we have year month and day and no conflicting key