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.



1227
1228
1229
# File 'lib/rexle.rb', line 1227

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

Instance Method Details

#inspectObject



1231
1232
1233
# File 'lib/rexle.rb', line 1231

def inspect()
  @value
end


1235
1236
1237
# File 'lib/rexle.rb', line 1235

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

#to_sObject



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

def to_s()
  @value
end