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.
1365 1366 1367 |
# File 'lib/rexle.rb', line 1365 def initialize(val='') @value = val end |
Instance Method Details
#inspect ⇒ Object
1369 1370 1371 |
# File 'lib/rexle.rb', line 1369 def inspect() @value end |
#print ⇒ Object
1373 1374 1375 |
# File 'lib/rexle.rb', line 1373 def print() "<!--%s-->" % @value end |
#to_s ⇒ Object
1377 1378 1379 |
# File 'lib/rexle.rb', line 1377 def to_s() @value end |