Class: Cecil::Node::Literal

Inherits:
Cecil::Node show all
Defined in:
lib/cecil/node.rb

Overview

Node with source code, no placeholders, and no child nodes. Created by calling #`(code_str) with a string that has no placeholders.

Will not accept any placeholder values, but can receive children via #with/#[] and will replace itself with a LiteralWithChildren.

Direct Known Subclasses

LiteralWithChildren

Method Summary

Methods inherited from Cecil::Node

#<<, #[]