Class: Guider::InlineTags
- Inherits:
-
Object
- Object
- Guider::InlineTags
- Defined in:
- lib/guider/inline_tags.rb
Instance Attribute Summary collapse
-
#base_url ⇒ Object
The base URL for referencing guides from root dir.
-
#link_url ⇒ Object
The base URL for links created by @link tags.
Instance Method Summary collapse
-
#initialize ⇒ InlineTags
constructor
A new instance of InlineTags.
- #replace(html) ⇒ Object
Constructor Details
#initialize ⇒ InlineTags
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_url ⇒ Object
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 |
#link_url ⇒ Object
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 |