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.
14 15 16 |
# File 'lib/wikilink/converter/namespace.rb', line 14 def initialize( = {}) @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
12 13 14 |
# File 'lib/wikilink/converter/namespace.rb', line 12 def @options end |
Instance Method Details
#config(&block) ⇒ Object
18 19 20 21 |
# File 'lib/wikilink/converter/namespace.rb', line 18 def config(&block) @block = block self end |
#run(run_options) ⇒ Object
23 24 25 26 27 |
# File 'lib/wikilink/converter/namespace.rb', line 23 def run() if @block instance_exec(, &@block) end end |