Class: Inspec::Resources::Lines
- Inherits:
-
Object
- Object
- Inspec::Resources::Lines
- Defined in:
- lib/inspec/resources/postgres_session.rb
Instance Attribute Summary collapse
-
#output ⇒ Object
readonly
Returns the value of attribute output.
Instance Method Summary collapse
-
#initialize(raw, desc) ⇒ Lines
constructor
A new instance of Lines.
- #lines ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(raw, desc) ⇒ Lines
Returns a new instance of Lines.
9 10 11 12 |
# File 'lib/inspec/resources/postgres_session.rb', line 9 def initialize(raw, desc) @output = raw @desc = desc end |
Instance Attribute Details
#output ⇒ Object (readonly)
Returns the value of attribute output.
7 8 9 |
# File 'lib/inspec/resources/postgres_session.rb', line 7 def output @output end |
Instance Method Details
#lines ⇒ Object
14 15 16 |
# File 'lib/inspec/resources/postgres_session.rb', line 14 def lines output.split("\n") end |
#to_s ⇒ Object
18 19 20 |
# File 'lib/inspec/resources/postgres_session.rb', line 18 def to_s @desc end |