Class: ReverseMarkdown::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/reverse_markdown/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



5
6
7
8
9
# File 'lib/reverse_markdown/config.rb', line 5

def initialize
  @unknown_tags    = :pass_through
  @github_flavored = false
  @inline_options = {}
end

Instance Attribute Details

#github_flavoredObject

Returns the value of attribute github_flavored.



3
4
5
# File 'lib/reverse_markdown/config.rb', line 3

def github_flavored
  @github_flavored
end

#unknown_tagsObject

Returns the value of attribute unknown_tags.



3
4
5
# File 'lib/reverse_markdown/config.rb', line 3

def unknown_tags
  @unknown_tags
end

Instance Method Details

#with(options = {}) ⇒ Object



11
12
13
14
15
16
# File 'lib/reverse_markdown/config.rb', line 11

def with(options = {})
  @inline_options = options
  result = yield
  @inline_options = {}
  result
end