Class: Prism::Relocation::FilepathField
- Inherits:
-
Object
- Object
- Prism::Relocation::FilepathField
- Defined in:
- lib/prism/relocation.rb,
sig/generated/prism/relocation.rbs
Overview
A field that represents the file path.
Instance Attribute Summary collapse
-
#value ⇒ String
readonly
The file path that this field represents.
Instance Method Summary collapse
-
#fields(_value) ⇒ entry_values
Fetch the file path.
-
#initialize(value) ⇒ FilepathField
constructor
Initialize a new field with the given file path.
Constructor Details
#initialize(value) ⇒ FilepathField
Initialize a new field with the given file path.
: (String value) -> void
256 257 258 |
# File 'lib/prism/relocation.rb', line 256 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ String (readonly)
The file path that this field represents.
251 252 253 |
# File 'lib/prism/relocation.rb', line 251 def value @value end |
Instance Method Details
#fields(_value) ⇒ entry_values
Fetch the file path.
: (_Value _value) -> entry_values
263 264 265 |
# File 'lib/prism/relocation.rb', line 263 def fields(_value) { filepath: value } end |