Class: SsSyntax::Parses::Comment

Inherits:
Object
  • Object
show all
Defined in:
lib/ss_syntax/parses/comment.rb

Class Method Summary collapse

Class Method Details

.check(text) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/ss_syntax/parses/comment.rb', line 4

def self.check(text)
  # TODO: 文の途中で#が出てきてもサポートする
  if text.match(/^#/)
    return true
  end

  return false
end