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.



1317
1318
1319
# File 'lib/rexle.rb', line 1317

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

Instance Method Details

#inspectObject



1321
1322
1323
# File 'lib/rexle.rb', line 1321

def inspect()
  @value
end


1325
1326
1327
# File 'lib/rexle.rb', line 1325

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

#to_sObject



1329
1330
1331
# File 'lib/rexle.rb', line 1329

def to_s()
  @value
end