Class: Rexle::Comment

Inherits:
Object
  • Object
show all
Defined in:
lib/rexle.rb

Instance Method Summary collapse

Constructor Details

#initialize(val = '') ⇒ Comment

Returns a new instance of Comment.



1282
1283
1284
# File 'lib/rexle.rb', line 1282

def initialize(val='')
  @value = val
end

Instance Method Details

#inspectObject



1286
1287
1288
# File 'lib/rexle.rb', line 1286

def inspect()
  @value
end


1290
1291
1292
# File 'lib/rexle.rb', line 1290

def print()
  "<!--%s-->" % @value
end

#to_sObject



1294
1295
1296
# File 'lib/rexle.rb', line 1294

def to_s()
  @value
end