class Book

Public Class Methods

new(params ={}, &block) click to toggle source
Calls superclass method Biblioref::new
# File lib/dsl/references.rb, line 44
def initialize(params ={}, &block)
    super
    instance_eval &block
end

Public Instance Methods

<=>(another) click to toggle source
Calls superclass method Biblioref#<=>
# File lib/dsl/references.rb, line 52
def <=>(another)
  if self.author_surname== another.author_surname && self.p_date==another.p_date
    self.title_<=>another.title_
  else
      super
    end
end
to_s() click to toggle source
Calls superclass method Biblioref#to_s
# File lib/dsl/references.rb, line 48
    def to_s
        super
end