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

- (PlaceholderObject) initialize(name)

Returns a new instance of PlaceholderObject



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

def initialize(name)
  @name = name
end

Instance Method Details

- (Object) inspect Also known as: to_s



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

def inspect
  @name
end