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.



1237
1238
1239
# File 'lib/rexle.rb', line 1237

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

Instance Method Details

#inspectObject



1241
1242
1243
# File 'lib/rexle.rb', line 1241

def inspect()
  @value
end


1245
1246
1247
# File 'lib/rexle.rb', line 1245

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

#to_sObject



1249
1250
1251
# File 'lib/rexle.rb', line 1249

def to_s()
  @value
end