Class: Prism::Reflection::Field
- Inherits:
-
Object
- Object
- Prism::Reflection::Field
- Defined in:
- lib/prism/reflection.rb
Overview
A field represents a single piece of data on a node. It is the base class for all other field types.
Direct Known Subclasses
ConstantField, ConstantListField, FlagsField, FloatField, IntegerField, LocationField, NodeField, NodeListField, OptionalConstantField, OptionalLocationField, OptionalNodeField, StringField
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
The name of the field.
Instance Method Summary collapse
-
#initialize(name) ⇒ Field
constructor
Initializes the field with the given name.
Constructor Details
#initialize(name) ⇒ Field
Initializes the field with the given name.
21 22 23 |
# File 'lib/prism/reflection.rb', line 21 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
The name of the field.
18 19 20 |
# File 'lib/prism/reflection.rb', line 18 def name @name end |