Class: Format::Bioinformatics

Inherits:
Object
  • Object
show all
Includes:
Format
Defined in:
lib/format/bioinformatics.rb

Overview

authors(initialed,comma’d,no spaces, using et al for 3 or more) (2007) title i(Journal_iso) year, i(vol(issue)), pages. authors(initialed) (year). “title” u(Journal_medline) vol(issue): pages.

Constant Summary

Constants included from Format

MediaForwarding, Symbol_to_class_string

Instance Method Summary collapse

Methods included from Format

#author_list, #finish, #format, #initialize, #method_missing, new, #par, #punctuate_initials

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Format

Instance Method Details

#articleObject



7
8
9
# File 'lib/format/bioinformatics.rb', line 7

def article
  [ [periodize(author_list('.', ',',nil)), par(year), periodize(title), i(journal_iso)].compact.join(' '), b(vol), pages].compact.join(', ') << '.'
end

#article_in_reviewObject

def article_to_be_submitted

#[periodize(author_list('.')),  periodize(par(year)), "\"#{periodize(title)}\"", i(journal_medline), b(vol), par(issue), ": #{pages}"].compact.join(' ')
[author_list('.'), "\"#{periodize(title)}\"", u(journal_medline), i('Article to be submitted')].compact.join(' ') << '.'

end



16
17
18
# File 'lib/format/bioinformatics.rb', line 16

def article_in_review
  [periodize(author_list('.', ',',nil)), par(year), periodize(title), i(journal_iso)].compact.join(' ') + ', ' + i('manuscript in review') << '.'
end

#webpageObject

shouldn’t really be webpages in the references



21
22
23
# File 'lib/format/bioinformatics.rb', line 21

def webpage
  abort 'shouldnt be webpages in Bioinformatics journals!'
end