Class: Format::JTP
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
#article ⇒ Object
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 [('.'), b(title), i(journal_iso), [b(year), vol_issue, pages].compact.join(', ')] end |
#article_to_be_submitted ⇒ Object
17 18 19 |
# File 'lib/format/jtp.rb', line 17 def article_to_be_submitted [('.'), i(journal_iso), i('Article to be submitted')] end |
#webpage ⇒ Object
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 |