Module: StickyFlag::Tags::C

Defined in:
lib/stickyflag/tags/c.rb

Class Method Summary collapse

Class Method Details

.clearObject

.comment_line_regexObject



13
14
15
# File 'lib/stickyflag/tags/c.rb', line 13

def comment_line_regex
  /\A\/\/ .*/
end

.extensionsObject



9
10
11
# File 'lib/stickyflag/tags/c.rb', line 9

def extensions
  [ '.c', '.cpp', '.cxx', '.c++', '.h', '.hpp', '.hxx' ]
end

.getObject

.setObject

.tag_line_for(str) ⇒ Object



21
22
23
# File 'lib/stickyflag/tags/c.rb', line 21

def tag_line_for(str)
  "// SF_TAGS = #{str}"
end

.tag_line_regexObject



17
18
19
# File 'lib/stickyflag/tags/c.rb', line 17

def tag_line_regex
  /\A\/\/ SF_TAGS = (.*)/
end

.unsetObject