Class: OhMyZshReader
- Inherits:
-
HistoryReader
- Object
- HistoryReader
- OhMyZshReader
- Defined in:
- lib/readers/oh_my_zsh_reader.rb
Instance Attribute Summary collapse
-
#file_contents ⇒ Object
Returns the value of attribute file_contents.
-
#file_name ⇒ Object
Returns the value of attribute file_name.
Attributes inherited from HistoryReader
Instance Method Summary collapse
Methods inherited from HistoryReader
files, #initialize, #timestamps?, timestamps?
Constructor Details
This class inherits a constructor from HistoryReader
Instance Attribute Details
#file_contents ⇒ Object
Returns the value of attribute file_contents.
4 5 6 |
# File 'lib/readers/oh_my_zsh_reader.rb', line 4 def file_contents @file_contents end |
#file_name ⇒ Object
Returns the value of attribute file_name.
4 5 6 |
# File 'lib/readers/oh_my_zsh_reader.rb', line 4 def file_name @file_name end |
Instance Method Details
#shell_commands ⇒ Object
6 7 8 |
# File 'lib/readers/oh_my_zsh_reader.rb', line 6 def shell_commands filtered_lines.map {|l| l.split(";").last.strip } end |