class Jekyll::Scholar::ReferenceTag

Public Class Methods

new(tag_name, arguments, tokens) click to toggle source
Calls superclass method
# File lib/jekyll/scholar/tags/reference.rb, line 7
def initialize(tag_name, arguments, tokens)
  super

  @config = Scholar.defaults.dup
  @keys, arguments = split_arguments arguments

  optparse(arguments)
end

Public Instance Methods

render(context) click to toggle source
# File lib/jekyll/scholar/tags/reference.rb, line 16
def render(context)
  set_context_to context
  keys.map { |key|
    reference_tag bibliography[key]
  }.join("\n")
end