Class: Guider::InlineTags

Inherits:
Object
  • Object
show all
Defined in:
lib/guider/inline_tags.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeInlineTags

Returns a new instance of InlineTags.



10
11
12
13
# File 'lib/guider/inline_tags.rb', line 10

def initialize
  @link_url = ""
  @base_url = "."
end

Instance Attribute Details

#base_urlObject

The base URL for referencing guides from root dir.



8
9
10
# File 'lib/guider/inline_tags.rb', line 8

def base_url
  @base_url
end

The base URL for links created by @link tags.



6
7
8
# File 'lib/guider/inline_tags.rb', line 6

def link_url
  @link_url
end

Instance Method Details

#replace(html) ⇒ Object



15
16
17
18
19
20
# File 'lib/guider/inline_tags.rb', line 15

def replace(html)
  replace_link!(html)
  replace_img!(html)
  replace_old_guide_links!(html)
  html
end