class

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)
Source

Class methods

parse_author(header : Nil)
Source
parse_author(header : String)
Source
parse_headers(source)
Source
parse_tags(header : Nil)
Source
parse_tags(header : String)
Source
parse_version(header : Nil)
Source
parse_version(header : String)
Source

Instance methods

author
Source
author=(author : String | Nil)
Source
file
Source
file=(file : String | Nil)
Source
header
Source
header=(header : String | Nil)
Source
tags
Source
tags=(tags : Array(String))
Source
version
Source
version=(version : String | Nil)
Source
write(build, file)
Source