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.
22 23 24 |
# File 'lib/yarsh.rb', line 22 def initialize(string) super(string) end |
Instance Method Details
#lines ⇒ Object
26 27 28 |
# File 'lib/yarsh.rb', line 26 def lines split("\n") end |
#words ⇒ Object
30 31 32 |
# File 'lib/yarsh.rb', line 30 def words split(' ') end |