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.



1196
1197
1198
# File 'lib/rexle.rb', line 1196

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

Instance Method Details

#inspectObject



1200
1201
1202
# File 'lib/rexle.rb', line 1200

def inspect()
  @value
end


1204
1205
1206
# File 'lib/rexle.rb', line 1204

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

#to_sObject



1208
1209
1210
# File 'lib/rexle.rb', line 1208

def to_s()
  @value
end