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.
1330 1331 1332 |
# File 'lib/rexle.rb', line 1330 def initialize(val='') @value = val end |
Instance Method Details
#inspect ⇒ Object
1334 1335 1336 |
# File 'lib/rexle.rb', line 1334 def inspect() @value end |
#print ⇒ Object
1338 1339 1340 |
# File 'lib/rexle.rb', line 1338 def print() "<!--%s-->" % @value end |
#to_s ⇒ Object
1342 1343 1344 |
# File 'lib/rexle.rb', line 1342 def to_s() @value end |