Class: Nendo::SyntacticClosure

Inherits:
Object
  • Object
show all
Defined in:
lib/nendo/ruby/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(originalSymbol, renamedSymbol) ⇒ SyntacticClosure

Returns a new instance of SyntacticClosure.



233
234
235
236
# File 'lib/nendo/ruby/types.rb', line 233

def initialize( originalSymbol, renamedSymbol )
  @originalSymbol = originalSymbol
  @renamedSymbol  = renamedSymbol
end

Instance Attribute Details

#originalSymbolObject (readonly)

Returns the value of attribute originalSymbol.



249
250
251
# File 'lib/nendo/ruby/types.rb', line 249

def originalSymbol
  @originalSymbol
end

#renamedSymbolObject (readonly)

Returns the value of attribute renamedSymbol.



249
250
251
# File 'lib/nendo/ruby/types.rb', line 249

def renamedSymbol
  @renamedSymbol
end

Instance Method Details

#internObject



242
243
244
# File 'lib/nendo/ruby/types.rb', line 242

def intern
  @renamedSymbol
end

#linenoObject



247
# File 'lib/nendo/ruby/types.rb', line 247

def lineno()      1                                     end

#sourcefileObject



246
# File 'lib/nendo/ruby/types.rb', line 246

def sourcefile()  "dynamic S-expression ( no source )"  end

#to_sObject



238
239
240
# File 'lib/nendo/ruby/types.rb', line 238

def to_s
  @renamedSymbol.to_s
end