Module: Maildown

Defined in:
lib/maildown.rb,
lib/maildown/version.rb,
lib/maildown/markdown_engine.rb,
lib/maildown/handlers/markdown.rb

Overview

Top level module, all module methods are used for configuration

Defined Under Namespace

Modules: Handlers, MarkdownEngine

Constant Summary collapse

VERSION =
"3.1.0"

Class Method Summary collapse

Class Method Details

.allow_indentationObject


6
7
8
# File 'lib/maildown.rb', line 6

def self.allow_indentation
  @allow_indentations
end

.allow_indentation=(allow_indentations) ⇒ Object


10
11
12
# File 'lib/maildown.rb', line 10

def self.allow_indentation=(allow_indentations)
  @allow_indentations = allow_indentations
end

.rails_6?Boolean

Returns:

  • (Boolean)

14
15
16
# File 'lib/maildown.rb', line 14

def self.rails_6?
  @rails_6 ||= Rails.version > "6"
end