Class: Yarsh::ExecOutput
- Inherits:
-
String
- Object
- String
- Yarsh::ExecOutput
- Defined in:
- lib/yarsh.rb
Instance Method Summary collapse
-
#initialize(string) ⇒ ExecOutput
constructor
A new instance of ExecOutput.
- #lines ⇒ Object
- #words ⇒ Object
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
#lines ⇒ Object
28 29 30 |
# File 'lib/yarsh.rb', line 28 def lines split("\n") end |
#words ⇒ Object
32 33 34 |
# File 'lib/yarsh.rb', line 32 def words split(' ') end |