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.



1121
1122
1123
# File 'lib/rexle.rb', line 1121

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

Instance Method Details

#inspectObject



1125
1126
1127
# File 'lib/rexle.rb', line 1125

def inspect()
  @value
end


1129
1130
1131
# File 'lib/rexle.rb', line 1129

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

#to_sObject



1133
1134
1135
# File 'lib/rexle.rb', line 1133

def to_s()
  @value
end