Module: ModpackLocalizer::SNBT::DescriptionExtractor
- Includes:
- IndentHelper
- Included in:
- Reader
- Defined in:
- lib/modpack_localizer/snbt/description_extractor.rb
Overview
SNBT形式のファイルからdescription: [“some description”]を抽出するモジュール
Instance Method Summary collapse
-
#extract_descriptions(file_path) ⇒ Array<Hash>
description: [“some description”]を抽出する.
Methods included from IndentHelper
#count_indent, #create_indent, #middle_indent
Instance Method Details
#extract_descriptions(file_path) ⇒ Array<Hash>
description: [“some description”]を抽出する
13 14 15 16 |
# File 'lib/modpack_localizer/snbt/description_extractor.rb', line 13 def extract_descriptions(file_path) lines = File.readlines(file_path) extract_from_file(lines) end |