123456789_123456789_123456789_123456789_123456789_

Class: Prism::Reflection::OptionalConstantField

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Field
Instance Chain:
self, Field
Inherits: Prism::Reflection::Field
Defined in: lib/prism/reflection.rb

Overview

An optional constant field represents a constant value on a node that may or may not be present. It resolves to either a symbol or nil in Ruby.

Class Method Summary

Field - Inherited

.new

Initializes the field with the given name.

Instance Attribute Summary

Field - Inherited

#name

The name of the field.

Constructor Details

This class inherits a constructor from Prism::Reflection::Field