Method: References::Reference#date

Defined in:
lib/references/reference.rb

#date(date) ⇒ Object

A Reference only can have a date. If you call this function twice times, this overwrite the las value The hash must have a :year => Number, :month => Number, :day => Number

Parameters:

  • date (Hash)


61
62
63
# File 'lib/references/reference.rb', line 61

def date(date)
  @datee = Date.new(date[:year],date[:month],date[:day])
end