Class: LyndaTranslatorSrt::SrtOriginal::Reader
- Inherits:
-
Object
- Object
- LyndaTranslatorSrt::SrtOriginal::Reader
- Defined in:
- lib/lynda_translator_srt/srt_original/reader.rb
Instance Attribute Summary collapse
-
#list_path_srt_files ⇒ Object
readonly
Returns the value of attribute list_path_srt_files.
-
#root_folder_name ⇒ Object
readonly
Returns the value of attribute root_folder_name.
-
#root_folder_path ⇒ Object
readonly
Returns the value of attribute root_folder_path.
Instance Method Summary collapse
- #create_list_path_srt_files ⇒ Object
-
#initialize(path_unzip_folder) ⇒ Reader
constructor
A new instance of Reader.
Constructor Details
#initialize(path_unzip_folder) ⇒ Reader
Returns a new instance of Reader.
8 9 10 |
# File 'lib/lynda_translator_srt/srt_original/reader.rb', line 8 def initialize(path_unzip_folder) @path_unzip_folder = path_unzip_folder end |
Instance Attribute Details
#list_path_srt_files ⇒ Object (readonly)
Returns the value of attribute list_path_srt_files.
6 7 8 |
# File 'lib/lynda_translator_srt/srt_original/reader.rb', line 6 def list_path_srt_files @list_path_srt_files end |
#root_folder_name ⇒ Object (readonly)
Returns the value of attribute root_folder_name.
6 7 8 |
# File 'lib/lynda_translator_srt/srt_original/reader.rb', line 6 def root_folder_name @root_folder_name end |
#root_folder_path ⇒ Object (readonly)
Returns the value of attribute root_folder_path.
6 7 8 |
# File 'lib/lynda_translator_srt/srt_original/reader.rb', line 6 def root_folder_path @root_folder_path end |
Instance Method Details
#create_list_path_srt_files ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/lynda_translator_srt/srt_original/reader.rb', line 12 def create_list_path_srt_files @list_path_srt_files = [] pathname = Pathname.new @path_unzip_folder @root_folder_path = pathname.children.first.to_s @root_folder_name = pathname.children.first.basename collect_srt pathname puts "Created list path srt files" self end |