Class: Wikilink::Converter::Sites::RubyTaiwan

Inherits:
RubyChina show all
Defined in:
lib/wikilink/converter/sites/ruby_china.rb

Constant Summary

Constants inherited from Wikilink::Converter::Site

Wikilink::Converter::Site::CURRENT_SITE_NAME, Wikilink::Converter::Site::DEFAULT_NAMESPACE

Instance Attribute Summary

Attributes inherited from Wikilink::Converter::Site

#options

Instance Method Summary collapse

Methods inherited from RubyChina

#run_namespace_node, #run_namespace_topic

Methods included from HTMLAttributes

#html_class

Methods included from LinkHelper

#link_to

Methods inherited from Wikilink::Converter::Site

#default_namespace, #namespace, #run

Methods included from ArgumentExtractor

#extract_arguments

Constructor Details

#initialize(options = {}) ⇒ RubyTaiwan

Returns a new instance of RubyTaiwan.



34
35
36
37
38
39
40
# File 'lib/wikilink/converter/sites/ruby_china.rb', line 34

def initialize(options = {})
  if options[:name] != CURRENT_SITE
    options[:domain] ||= 'http://ruby-taiwan.org/'
  end

  super(options)
end