Class: Rexle::Comment
- Inherits:
-
Object
- Object
- Rexle::Comment
- Defined in:
- lib/rexle.rb
Instance Method Summary collapse
-
#initialize(val = '') ⇒ Comment
constructor
A new instance of Comment.
- #inspect ⇒ Object
- #print ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(val = '') ⇒ Comment
Returns a new instance of Comment.
1352 1353 1354 |
# File 'lib/rexle.rb', line 1352 def initialize(val='') @value = val end |
Instance Method Details
#inspect ⇒ Object
1356 1357 1358 |
# File 'lib/rexle.rb', line 1356 def inspect() @value end |
#print ⇒ Object
1360 1361 1362 |
# File 'lib/rexle.rb', line 1360 def print() "<!--%s-->" % @value end |
#to_s ⇒ Object
1364 1365 1366 |
# File 'lib/rexle.rb', line 1364 def to_s() @value end |