Module: TDiary::ViewHelper

Included in:
Filter::Filter, Plugin, TDiaryBase
Defined in:
lib/tdiary/view_helper.rb

Instance Method Summary collapse

Instance Method Details

#base_urlObject



7
8
9
10
11
12
13
# File 'lib/tdiary/view_helper.rb', line 7

def base_url
  if @conf.options['base_url'] && @conf.options['base_url'].length > 0
    @conf.options['base_url']
  else
    @cgi.base_url
  end
end

#bot?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/tdiary/view_helper.rb', line 3

def bot?
	@conf.bot =~ @cgi.user_agent
end