Class: Configuration
- Inherits:
-
Object
- Object
- Configuration
- Defined in:
- lib/ruby-bbcode/configuration.rb
Overview
Configuration holds RubyBBCode configuration
Instance Attribute Summary collapse
-
#ignore_unknown_tags ⇒ Object
Defines how to treat unknown tags * :exception throws and exception * :text converts it into a text * :ignore removes it from the output.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 |
# File 'lib/ruby-bbcode/configuration.rb', line 9 def initialize = :text end |
Instance Attribute Details
#ignore_unknown_tags ⇒ Object
Defines how to treat unknown tags
-
:exception throws and exception
-
:text converts it into a text
-
:ignore removes it from the output
7 8 9 |
# File 'lib/ruby-bbcode/configuration.rb', line 7 def end |