Class: PBRT::Parameter

Inherits:
Object
  • Object
show all
Defined in:
lib/pbrt/parameter.rb

Instance Method Summary collapse

Constructor Details

#initialize(type, name) ⇒ Parameter

Returns a new instance of Parameter.



3
4
5
6
# File 'lib/pbrt/parameter.rb', line 3

def initialize(type, name)
  @type = type
  @name = name
end

Instance Method Details

#to_sObject



8
9
10
# File 'lib/pbrt/parameter.rb', line 8

def to_s
  %("#@type #@name")
end