Class: Juli::Visitor::Html::Helper::AbstractHelper

Inherits:
Object
  • Object
show all
Includes:
Util
Defined in:
lib/juli/visitor/html/helper.rb

Direct Known Subclasses

Contents, FbComments, FbLike

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Util

#camelize, conf, find_template, in_filename, juli_repo, mkdir, out_filename, str_limit, str_trim, to_wikiname, underscore, usage, visitor, visitor_list

Constructor Details

#initializeAbstractHelper

called when juli(1) starts.



53
54
# File 'lib/juli/visitor/html/helper.rb', line 53

def initialize
end

Class Method Details

.conf_templateObject

called on ‘juli init’ to generate config sample template.



48
49
50
# File 'lib/juli/visitor/html/helper.rb', line 48

def self.conf_template
  ''
end

Instance Method Details

#on_root(in_file, root, visitor) ⇒ Object

called on each parsed document



61
62
# File 'lib/juli/visitor/html/helper.rb', line 61

def on_root(in_file, root, visitor)
end

#run(*args) ⇒ Object

This will be a helper like ‘abstract_helper(args)’



65
66
# File 'lib/juli/visitor/html/helper.rb', line 65

def run(*args)
end

#set_conf_default(conf) ⇒ Object

called on setting up conf to set default key=val



57
58
# File 'lib/juli/visitor/html/helper.rb', line 57

def set_conf_default(conf)
end