class G03ref

Attributes

authors[RW]
date[RW]
edicion[RW]
editorial[RW]
isbn[RW]
serie[RW]
title[RW]

Public Class Methods

new(authors,title,date) click to toggle source
# File lib/lpp_Grupo3/reference.rb, line 5
def initialize(authors,title,date)
    self.authors = []
    authors.each do |palabras|
               @authors.push(palabras)
    end
        @title = title
        @date = date
end

Public Instance Methods

<=>(other) click to toggle source
# File lib/lpp_Grupo3/reference.rb, line 23
  def <=>(other)
return nil unless other.is_a? G03ref
@title <=> other.title
  end
get_authors() click to toggle source
# File lib/lpp_Grupo3/reference.rb, line 13
def get_authors
    @authors
end
get_date() click to toggle source
# File lib/lpp_Grupo3/reference.rb, line 20
def get_date
    @date
end
get_title() click to toggle source
# File lib/lpp_Grupo3/reference.rb, line 17
def get_title
    @title
end