Class: Wikilink::Converter::Namespace
- Inherits:
-
Object
- Object
- Wikilink::Converter::Namespace
- Includes:
- HTMLAttributes, LinkHelper
- Defined in:
- lib/wikilink/converter/namespace.rb
Overview
Namespace converter
Direct Known Subclasses
Defined Under Namespace
Classes: Default
Constant Summary collapse
- DEFAULT_NAME =
''
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #config(&block) ⇒ Object
-
#initialize(options = {}) ⇒ Namespace
constructor
A new instance of Namespace.
- #run(run_options) ⇒ Object
Methods included from HTMLAttributes
Methods included from LinkHelper
Constructor Details
#initialize(options = {}) ⇒ Namespace
Returns a new instance of Namespace.
15 16 17 |
# File 'lib/wikilink/converter/namespace.rb', line 15 def initialize( = {}) @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
13 14 15 |
# File 'lib/wikilink/converter/namespace.rb', line 13 def @options end |
Instance Method Details
#config(&block) ⇒ Object
19 20 21 22 |
# File 'lib/wikilink/converter/namespace.rb', line 19 def config(&block) @block = block self end |
#run(run_options) ⇒ Object
24 25 26 27 28 |
# File 'lib/wikilink/converter/namespace.rb', line 24 def run() if @block instance_exec(, &@block) end end |