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.



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

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

Instance Method Details

#inspectObject



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

def inspect()
  @value
end


1154
1155
1156
# File 'lib/rexle.rb', line 1154

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

#to_sObject



1158
1159
1160
# File 'lib/rexle.rb', line 1158

def to_s()
  @value
end