Method: VRT.get_json
- Defined in:
- lib/vrt.rb
.get_json(version: nil, other: true) ⇒ Object
Load the VRT from text files, and parse it as JSON. If other: true, we append the OTHER_OPTION hash at runtime (not cached)
86 87 88 89 90 |
# File 'lib/vrt.rb', line 86 def get_json(version: nil, other: true) version ||= current_version @version_json[version] ||= json_for_version(version) other ? @version_json[version] + [OTHER_OPTION] : @version_json[version] end |