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.



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

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

Instance Method Details

#inspectObject



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

def inspect()
  @value
end


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

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

#to_sObject



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

def to_s()
  @value
end