class Parser
- Parser
- Reference
- Object
Defined in:
parser.crConstant Summary
-
LINE_RE =
/^\s*--\s*name:\s*([a-z\_\?\!0-9]+)(\(.*?\)|).*?$/
-
PARAM_RAW_RE =
/\{\{\!(.*?)\}\}/
-
PARAM_RE =
/\{\{(.*?)\}\}/
Constructors
Instance Method Summary
- #define_method(metadata, sql)
- #get_metadata(meta)
-
#metadata?(line)
checks if the given line contains metadata example: -- name: get_users(name, surname)
- #parse
- #parse_sql(sql)
- #set_indent(sql)
-
#sql?(line)
checks for lines that is neither comment line (starts with -- ) nor whitespace
Constructor Detail
Instance Method Detail
def metadata?(line)
#
checks if the given line contains metadata example: -- name: get_users(name, surname)