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.



1365
1366
1367
# File 'lib/rexle.rb', line 1365

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

Instance Method Details

#inspectObject



1369
1370
1371
# File 'lib/rexle.rb', line 1369

def inspect()
  @value
end


1373
1374
1375
# File 'lib/rexle.rb', line 1373

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

#to_sObject



1377
1378
1379
# File 'lib/rexle.rb', line 1377

def to_s()
  @value
end