Class: Format::JTP

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

Overview

authors(initialed) title i(Journal_iso) year, i(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
10
11
12
13
14
15
# File 'lib/format/jtp.rb', line 7

def article
  vol_issue = 
    if vol
      "#{vol}#{par(issue)}"
    else
      nil
    end
  [author_list('.'), b(title), i(journal_iso), [b(year), vol_issue, pages].compact.join(', ')]
end

#article_to_be_submittedObject



17
18
19
# File 'lib/format/jtp.rb', line 17

def 
  [author_list('.'), i(journal_iso), i('Article to be submitted')]
end

#webpageObject



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

def webpage
  [periodize(b(title)), u(url), periodize("#{b(year)}, #{month} #{day}")].compact.join(' ')
end