class Italics

Handles logic for Italics tokens

Constants

DELIMITER_TOKEN

Public Instance Methods

type() click to toggle source
# File lib/rosetta/tokens/italics.rb, line 12
def type
  :ITALICS
end
value() click to toggle source
# File lib/rosetta/tokens/italics.rb, line 16
def value
  return DELIMITER_TOKEN * 2 if @source_text == DELIMITER_TOKEN * 2

  @source_text[self.class.delimiter_length...-self.class.delimiter_length]
end