Class: PreCommit::Message
- Inherits:
-
Struct
- Object
- Struct
- PreCommit::Message
- Defined in:
- lib/pre-commit/message.rb
Instance Attribute Summary collapse
-
#lines ⇒ Object
Returns the value of attribute lines.
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
Instance Attribute Details
#lines ⇒ Object
Returns the value of attribute lines
2 3 4 |
# File 'lib/pre-commit/message.rb', line 2 def lines @lines end |
#message ⇒ Object
Returns the value of attribute message
2 3 4 |
# File 'lib/pre-commit/message.rb', line 2 def @message end |
Instance Method Details
#to_s ⇒ Object
4 5 6 7 8 |
# File 'lib/pre-commit/message.rb', line 4 def to_s result = result = "#{}\n#{lines.map(&:to_s).join("\n")}" unless lines.nil? result end |