Class: IDL::Scanner::Identifier

Inherits:
String
  • Object
show all
Defined in:
lib/ridl/scanner.rb

Overview

string derivative for IDL parsed identifiers able to carry both ‘raw’ IDL name as well as language mapped name

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(idl_id, checked_id, unescaped_idl_id = nil) ⇒ Identifier

Returns a new instance of Identifier.



210
211
212
213
214
# File 'lib/ridl/scanner.rb', line 210

def initialize(idl_id, checked_id, unescaped_idl_id = nil)
  super(idl_id)
  @checked_name = checked_id
  @unescaped_name = unescaped_idl_id || idl_id
end

Instance Attribute Details

#checked_nameObject (readonly)

Returns the value of attribute checked_name.



208
209
210
# File 'lib/ridl/scanner.rb', line 208

def checked_name
  @checked_name
end

#unescaped_nameObject (readonly)

Returns the value of attribute unescaped_name.



208
209
210
# File 'lib/ridl/scanner.rb', line 208

def unescaped_name
  @unescaped_name
end