Class: Prism::Relocation::FilepathField
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/prism/relocation.rb |
Overview
A field that represents the file path.
Class Method Summary
-
.new(value) ⇒ FilepathField
constructor
Initialize a new field with the given file path.
Instance Attribute Summary
-
#value
readonly
The file path that this field represents.
Instance Method Summary
-
#fields(_value)
Fetch the file path.
Constructor Details
.new(value) ⇒ FilepathField
Initialize a new field with the given file path.
Instance Attribute Details
#value (readonly)
The file path that this field represents.
# File 'lib/prism/relocation.rb', line 187
attr_reader :value
Instance Method Details
#fields(_value)
Fetch the file path.
# File 'lib/prism/relocation.rb', line 195
def fields(_value) { filepath: value } end