Class: Ping::Parser
- Inherits:
-
Object
- Object
- Ping::Parser
- Defined in:
- lib/ping/parser.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text = nil) ⇒ Parser
constructor
A new instance of Parser.
- #issues ⇒ Object
- #mentions ⇒ Object
Constructor Details
#initialize(text = nil) ⇒ Parser
Returns a new instance of Parser.
8 9 10 |
# File 'lib/ping/parser.rb', line 8 def initialize(text = nil) @text = text.to_s end |
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text.
6 7 8 |
# File 'lib/ping/parser.rb', line 6 def text @text end |