Jinx::HeaderParser
Inherits Reference < Object
Constants
AUTHOR_PATTERN = /^[\s\t#]*author: (.*)$/i
HEADER_PATTERN = /^=begin\r?\n?(.+?)^=end/m
TAGS_PATTERN = /^[\s\t#]*tags: (.*?)$/i
VERSION_PATTERN = /^[\s\t#]*version: (.*)$/i
Constructors
new(build : Build, file : String, source : String)
SourceClass methods
parse_author(header : Nil)
Sourceparse_author(header : String)
Sourceparse_headers(source)
Sourceparse_tags(header : Nil)
Sourceparse_tags(header : String)
Sourceparse_version(header : Nil)
Sourceparse_version(header : String)
SourceInstance methods
author
Sourceauthor=(author : String | Nil)
Sourcefile
Sourcefile=(file : String | Nil)
Sourceheader
Sourceheader=(header : String | Nil)
Sourcetags
Sourcetags=(tags : Array(String))
Sourceversion
Sourceversion=(version : String | Nil)
Sourcewrite(build, file)
Source