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
1252 1253 1254 |
# File 'lib/rexle.rb', line 1252 def initialize(val='') @value = val end |
Instance Method Details
#inspect ⇒ Object
1256 1257 1258 |
# File 'lib/rexle.rb', line 1256 def inspect() @value end |
#print ⇒ Object
1260 1261 1262 |
# File 'lib/rexle.rb', line 1260 def print() "<!--%s-->" % @value end |
#to_s ⇒ Object
1264 1265 1266 |
# File 'lib/rexle.rb', line 1264 def to_s() @value end |