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.



1239
1240
1241
# File 'lib/rexle.rb', line 1239

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

Instance Method Details

#inspectObject



1243
1244
1245
# File 'lib/rexle.rb', line 1243

def inspect()
  @value
end


1247
1248
1249
# File 'lib/rexle.rb', line 1247

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

#to_sObject



1251
1252
1253
# File 'lib/rexle.rb', line 1251

def to_s()
  @value
end