Skip to content

Commit cf92bef

Browse files
committed
ParseXS: refactor: make build_subclass() simpler
The $build_subclass->() method called in BEGIN by subclasses to create a subclass, has as the first two parameters: a key which must be 'parent', and the suffix of the parent class name. If the latter is '', 'ExtUtils::ParseXS::Node' is assumed. This commit makes these two args optional; if not present, it acts like ('parent' => '') used to. In addition, the 'parent' arg has been renamed to '-parent' to distinguish it from a possible field name. Based on a suggestion from Tony C.
1 parent 373806a commit cf92bef

File tree

1 file changed

+61
-57
lines changed
  • dist/ExtUtils-ParseXS/lib/ExtUtils/ParseXS

1 file changed

+61
-57
lines changed

0 commit comments

Comments
 (0)