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.



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

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

Instance Method Details

#inspectObject



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

def inspect()
  @value
end


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

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

#to_sObject



1335
1336
1337
# File 'lib/rexle.rb', line 1335

def to_s()
  @value
end