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.



1352
1353
1354
# File 'lib/rexle.rb', line 1352

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

Instance Method Details

#inspectObject



1356
1357
1358
# File 'lib/rexle.rb', line 1356

def inspect()
  @value
end


1360
1361
1362
# File 'lib/rexle.rb', line 1360

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

#to_sObject



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

def to_s()
  @value
end