123456789_123456789_123456789_123456789_123456789_

Class: Prism::Reflection::Field

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Subclasses:
Inherits: Object
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.

Class Method Summary

Instance Attribute Summary

  • #name readonly

    The name of the field.

Constructor Details

.new(name) ⇒ Field

Initializes the field with the given name.

[ GitHub ]

  
# File 'lib/prism/reflection.rb', line 24

def initialize(name)
  @name = name
end

Instance Attribute Details

#name (readonly)

The name of the field.

[ GitHub ]

  
# File 'lib/prism/reflection.rb', line 21

attr_reader :name