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.
1138 1139 1140 |
# File 'lib/rexle.rb', line 1138 def initialize(val='') @value = val end |
Instance Method Details
#inspect ⇒ Object
1142 1143 1144 |
# File 'lib/rexle.rb', line 1142 def inspect() @value end |
#print ⇒ Object
1146 1147 1148 |
# File 'lib/rexle.rb', line 1146 def print() "<!--%s-->" % @value end |
#to_s ⇒ Object
1150 1151 1152 |
# File 'lib/rexle.rb', line 1150 def to_s() @value end |