Class: Laser::PlaceholderObject

Inherits:
Object
  • Object
show all
Defined in:
lib/laser/support/placeholder_object.rb

Overview

Class that's just a name. Substitute for symbols, which can overlap with user-code values.

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ PlaceholderObject



5
6
7
# File 'lib/laser/support/placeholder_object.rb', line 5

def initialize(name)
  @name = name
end

Instance Method Details

#inspectObject Also known as: to_s



8
9
10
# File 'lib/laser/support/placeholder_object.rb', line 8

def inspect
  @name
end