class Prism::Reflection::Field
A field represents a single piece of data on a node. It is the base class for all other field types.
Attributes
The name of the field.
Public Class Methods
Source
# File lib/prism/reflection.rb, line 21 def initialize(name) @name = name end
Initializes the field with the given name.
Ruby Core © 1993–2024 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.