Module: Hexp::DSL

Defined in:
lib/hexp/dsl.rb

Overview

Make the Hexp::Node DSL available to objects that implement ‘to_hexp`

Mixing in Hexp has the same effect as mixing in DSL, and is the recommended way.

Constant Summary collapse

CHILDREN_METHODS =

The names of methods related to manipulating the list of children of a node

Hexp::Node::Children.public_instance_methods.freeze
ATTRIBUTES_METHODS =

The names of methods related to a node’s attributes

Hexp::Node::Attributes.public_instance_methods.freeze
NODE_METHODS =

Methods that are defined directly in Node

Hexp::Node.public_instance_methods(false) - [
  :to_hexp,
  :inspect
]