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.



22
23
24
# File 'lib/yarsh.rb', line 22

def initialize(string)
  super(string)
end

Instance Method Details

#linesObject



26
27
28
# File 'lib/yarsh.rb', line 26

def lines
  split("\n")
end

#wordsObject



30
31
32
# File 'lib/yarsh.rb', line 30

def words
  split(' ')
end