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.



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

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

Instance Method Details

#inspectObject



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

def inspect()
  @value
end


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

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

#to_sObject



1340
1341
1342
# File 'lib/rexle.rb', line 1340

def to_s()
  @value
end