summaryrefslogtreecommitdiff
path: root/lib/gitlab/gfm/ast/syntax/text.rb
blob: 2df68daf23ce5934495e61f66ee0b67bd268cec0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
module Gitlab
  module Gfm
    module Ast
      module Syntax
        ##
        # Text description
        #
        class Text < Node
          def allowed
            []
          end

          def value
            @text
          end

          def to_s
            @text
          end

          def self.pattern
            /(?<value>.+)/m
          end
        end
      end
    end
  end
end