class Regextest::Front::Empty::TEmpty
Attributes
length[R]
offset[R]
Public Class Methods
new()
click to toggle source
Constructor
# File lib/regextest/front/empty.rb, line 14 def initialize TstLog("Empty: ") @offset = -1 @length = 0 end
Public Instance Methods
json()
click to toggle source
generate json format
# File lib/regextest/front/empty.rb, line 30 def json @@id += 1 "{" + "\"type\": \"LEX_EMPTY\", \"id\": \"E#{@@id}\", \"value\": \"\", " + "\"offset\": #{@offset}, \"length\": #{@length}" + "}" end
set_options(options)
click to toggle source
set options
# File lib/regextest/front/empty.rb, line 23 def set_options(options) TstLog("Empty set_options: #{options[:reg_options].inspect}"); # do nothing self end