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.



1295
1296
1297
# File 'lib/rexle.rb', line 1295

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

Instance Method Details

#inspectObject



1299
1300
1301
# File 'lib/rexle.rb', line 1299

def inspect()
  @value
end


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

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

#to_sObject



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

def to_s()
  @value
end