Class: Yarsh::ExecOutput

Inherits:
String
  • Object
show all
Defined in:
lib/yarsh.rb

Instance Method Summary collapse

Constructor Details

#initialize(string) ⇒ ExecOutput

Returns a new instance of ExecOutput.



24
25
26
# File 'lib/yarsh.rb', line 24

def initialize(string)
  super(string)
end

Instance Method Details

#linesObject



28
29
30
# File 'lib/yarsh.rb', line 28

def lines
  split("\n")
end

#wordsObject



32
33
34
# File 'lib/yarsh.rb', line 32

def words
  split(' ')
end