Class Dotenv::Parser
In: lib/dotenv/parser.rb
Parent: Object

This class enables parsing of a string for key value pairs to be returned and stored in the Environment. It allows for variable substitutions and exporting of variables.

Methods

call   call   new  

Constants

LINE = / (?:^|\A) # beginning of line \s* # leading whitespace (?:export\s+)? # optional export ([\w\.]+) # key (?:\s*=\s*?|:\s+?) # separator ( # optional value begin '(?:\\'|[^'])*' # single quoted value | # or "(?:\\"|[^"])*" # double quoted value | # or [^\#\r\n]+ # unquoted value )? # value end \s* # trailing whitespace (?:\#.*)? # optional comment (?:$|\z) # end of line /x

Attributes

substitutions  [R] 

Public Class methods

Public Instance methods

[Validate]