Class: Formatter::Double
- Defined in:
- lib/livetext/formatter.rb
Instance Method Summary collapse
-
#initialize(str, sigil, tag) ⇒ Double
constructor
A new instance of Double.
- #terminated? ⇒ Boolean
Methods inherited from Delimited
#buffer, #cdata, #eol?, #escape?, #front, #grab, #grab_terminator, #handle, #initial, #looping, #marker?, process, #space?, #space_marker?, #status, #wrap
Constructor Details
#initialize(str, sigil, tag) ⇒ Double
Returns a new instance of Double.
173 174 175 176 177 |
# File 'lib/livetext/formatter.rb', line 173 def initialize(str, sigil, tag) super # Convention: marker is "**", sigil is "*" @marker = sigil + sigil end |
Instance Method Details
#terminated? ⇒ Boolean
179 180 181 182 |
# File 'lib/livetext/formatter.rb', line 179 def terminated? terms = [" ", ".", ","] terms.include?(front) end |