Factory for :class:`apacheconfig.ListNode` from a config string. Args: raw_str (str): Config string to parse. parser (:class:`apacheconfig.ApacheConfigParser`): parser object to use. Returns: :class:`apacheconfig.ListNode` containi
(cls, raw_str, parser)
| 172 | |
| 173 | @classmethod |
| 174 | def parse(cls, raw_str, parser): |
| 175 | """Factory for :class:`apacheconfig.ListNode` from a config string. |
| 176 | |
| 177 | Args: |
| 178 | raw_str (str): Config string to parse. |
| 179 | parser (:class:`apacheconfig.ApacheConfigParser`): parser object |
| 180 | to use. |
| 181 | Returns: |
| 182 | :class:`apacheconfig.ListNode` containing data parsed from |
| 183 | ``raw_str``. |
| 184 | """ |
| 185 | raw = parser.parse(raw_str) |
| 186 | return cls(raw, parser) |
| 187 | |
| 188 | def add(self, index, raw_str): |
| 189 | """Parses and adds child element at given index. |
no outgoing calls