Class: OhMyZshReader

Inherits:
HistoryReader show all
Defined in:
lib/readers/oh_my_zsh_reader.rb

Instance Attribute Summary collapse

Attributes inherited from HistoryReader

#filename

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_contentsObject

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_nameObject

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_commandsObject



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