Class: Alula::Emphasis

Inherits:
Object
  • Object
show all
Defined in:
lib/alula/plugins/emphasis.rb

Class Method Summary collapse

Class Method Details

.install(options) ⇒ Object



13
14
15
16
17
18
19
# File 'lib/alula/plugins/emphasis.rb', line 13

def self.install(options)
  # Force defer mode on script loading
  Alula::Plugin.script_load_mode = :defer
  
  # Add Emphasis -powered link to footer
  Alula::Plugin.addon(:footer, "<a href=\"https://github.com/NYTimes/Emphasis\" title=\"Emphasis\">&para;</a>&nbsp;&ndash;Emphasis</a><br />")
end

.pathObject



5
6
7
# File 'lib/alula/plugins/emphasis.rb', line 5

def self.path
  File.join(File.dirname(__FILE__), %w{.. .. .. plugins emphasis})
end

.versionObject



9
10
11
# File 'lib/alula/plugins/emphasis.rb', line 9

def self.version
  Alula::Plugins::VERSION::STRING
end