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.



1304
1305
1306
# File 'lib/rexle.rb', line 1304

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

Instance Method Details

#inspectObject



1308
1309
1310
# File 'lib/rexle.rb', line 1308

def inspect()
  @value
end


1312
1313
1314
# File 'lib/rexle.rb', line 1312

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

#to_sObject



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

def to_s()
  @value
end