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.



1137
1138
1139
# File 'lib/rexle.rb', line 1137

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

Instance Method Details

#inspectObject



1141
1142
1143
# File 'lib/rexle.rb', line 1141

def inspect()
  @value
end


1145
1146
1147
# File 'lib/rexle.rb', line 1145

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

#to_sObject



1149
1150
1151
# File 'lib/rexle.rb', line 1149

def to_s()
  @value
end