summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2013-10-22 01:23:03 -0600
committerDan Allen <dan.j.allen@gmail.com>2013-10-22 01:23:03 -0600
commitf4195bcf7485ea40fa2a4bc44cf23f7c25de01a7 (patch)
tree5a25d8dfae2fed7f1af89063717458032ef6be77
parent6d8ed54890f4ebebc655b278bc2de347bbeaf6e0 (diff)
rename Substituters to Substitutors
-rwxr-xr-xlib/asciidoctor.rb4
-rw-r--r--lib/asciidoctor/abstract_node.rb2
-rw-r--r--lib/asciidoctor/reader.rb2
-rw-r--r--lib/asciidoctor/substitutors.rb (renamed from lib/asciidoctor/substituters.rb)2
4 files changed, 5 insertions, 5 deletions
diff --git a/lib/asciidoctor.rb b/lib/asciidoctor.rb
index fce1bfff..e3f6d5d6 100755
--- a/lib/asciidoctor.rb
+++ b/lib/asciidoctor.rb
@@ -698,7 +698,7 @@ module Asciidoctor
# unconstrained quotes:: can appear anywhere
# constrained quotes:: must be bordered by non-word characters
- # NOTE these substituions are processed in the order they appear here and
+ # NOTE these substitutions are processed in the order they appear here and
# the order in which they are replaced is important
QUOTE_SUBS = [
@@ -1055,7 +1055,7 @@ module Asciidoctor
# modules
require 'asciidoctor/helpers'
- require 'asciidoctor/substituters'
+ require 'asciidoctor/substitutors'
# abstract classes
require 'asciidoctor/abstract_node'
diff --git a/lib/asciidoctor/abstract_node.rb b/lib/asciidoctor/abstract_node.rb
index 3c88cd39..8003d0c4 100644
--- a/lib/asciidoctor/abstract_node.rb
+++ b/lib/asciidoctor/abstract_node.rb
@@ -4,7 +4,7 @@ module Asciidoctor
# all content segments in an AsciiDoc document.
class AbstractNode
- include Substituters
+ include Substitutors
# Public: Get the element which is the parent of this node
attr_reader :parent
diff --git a/lib/asciidoctor/reader.rb b/lib/asciidoctor/reader.rb
index a01ce4b1..bcc4c43f 100644
--- a/lib/asciidoctor/reader.rb
+++ b/lib/asciidoctor/reader.rb
@@ -622,7 +622,7 @@ class PreprocessorReader < Reader
@look_ahead += 1
line[1..-1]
else
- # QUESTION should we strip whitespace from raw attributes in Substituters#parse_attributes? (check perf)
+ # QUESTION should we strip whitespace from raw attributes in Substitutors#parse_attributes? (check perf)
if preprocess_include match[1], match[2].strip
# peek again since the content has changed
nil
diff --git a/lib/asciidoctor/substituters.rb b/lib/asciidoctor/substitutors.rb
index 24b54170..9e500c3f 100644
--- a/lib/asciidoctor/substituters.rb
+++ b/lib/asciidoctor/substitutors.rb
@@ -2,7 +2,7 @@ module Asciidoctor
# Public: Methods to perform substitutions on lines of AsciiDoc text. This module
# is intented to be mixed-in to Section and Block to provide operations for performing
# the necessary substitutions.
-module Substituters
+module Substitutors
SUBS = {
:basic => [:specialcharacters],