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.
1220 1221 1222 |
# File 'lib/rexle.rb', line 1220 def initialize(val='') @value = val end |
Instance Method Details
#inspect ⇒ Object
1224 1225 1226 |
# File 'lib/rexle.rb', line 1224 def inspect() @value end |
#print ⇒ Object
1228 1229 1230 |
# File 'lib/rexle.rb', line 1228 def print() "<!--%s-->" % @value end |
#to_s ⇒ Object
1232 1233 1234 |
# File 'lib/rexle.rb', line 1232 def to_s() @value end |