Class: PBRT::Builder::NamedMaterial
- Inherits:
-
Object
- Object
- PBRT::Builder::NamedMaterial
- Defined in:
- lib/pbrt/builder/named_material.rb
Instance Method Summary collapse
-
#initialize(builder, name) ⇒ NamedMaterial
constructor
A new instance of NamedMaterial.
- #method_missing(method, *args) ⇒ Object
- #write(statement) ⇒ Object
Constructor Details
#initialize(builder, name) ⇒ NamedMaterial
Returns a new instance of NamedMaterial.
4 5 6 7 |
# File 'lib/pbrt/builder/named_material.rb', line 4 def initialize(builder, name) @builder = builder @name = name end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
Instance Method Details
#write(statement) ⇒ Object
13 14 15 |
# File 'lib/pbrt/builder/named_material.rb', line 13 def write(statement) @builder.write(modified(statement)) end |