|
|
|
@ -1,13 +1,10 @@ |
|
|
|
require_relative '../constants' |
|
|
|
require_relative '../constants' |
|
|
|
|
|
|
|
|
|
|
|
module Squib |
|
|
|
module Squib::Args |
|
|
|
# @api private |
|
|
|
|
|
|
|
module Args |
|
|
|
|
|
|
|
# Internal class for handling arguments |
|
|
|
# Internal class for handling arguments |
|
|
|
# @api private |
|
|
|
|
|
|
|
class Typographer |
|
|
|
class Typographer |
|
|
|
|
|
|
|
|
|
|
|
def initialize(config = Conf::DEFAULTS) |
|
|
|
def initialize(config = Squib::Conf::DEFAULTS) |
|
|
|
%w(lsquote ldquote rsquote rdquote smart_quotes |
|
|
|
%w(lsquote ldquote rsquote rdquote smart_quotes |
|
|
|
em_dash en_dash ellipsis).each do |var| |
|
|
|
em_dash en_dash ellipsis).each do |var| |
|
|
|
instance_variable_set("@#{var}", config[var]) |
|
|
|
instance_variable_set("@#{var}", config[var]) |
|
|
|
@ -116,4 +113,3 @@ module Squib |
|
|
|
|
|
|
|
|
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|