class InlineCode
Handles logic for Inline Code tokens
Constants
- DELIMITER_TOKEN
Public Class Methods
delimiter_length()
click to toggle source
# File lib/rosetta/tokens/inline_code.rb, line 12 def self.delimiter_length DELIMITER_TOKEN.length end
Public Instance Methods
type()
click to toggle source
# File lib/rosetta/tokens/inline_code.rb, line 16 def type :INLINE_CODE end
value()
click to toggle source
# File lib/rosetta/tokens/inline_code.rb, line 20 def value return DELIMITER_TOKEN * 2 if @source_text == DELIMITER_TOKEN * 2 @source_text[self.class.delimiter_length...-self.class.delimiter_length] end