Class: RedShift::Component::SingletonShadowClass

Inherits:
Object
  • Object
show all
Includes:
CShadow, Singleton
Defined in:
lib/redshift/target/c/component-gen.rb

Overview

Useful way to represent an object that has compile time (pre-commit) and run-time (post-commit) bevahior. The compile time behavior is in the class, and the run time behavior is in the unique instance.

Direct Known Subclasses

FunctionWrapper

Class Attribute Summary collapse

Instance Method Summary collapse

Class Attribute Details

.inspect_strObject (readonly)

Returns the value of attribute inspect_str.



113
114
115
# File 'lib/redshift/target/c/component-gen.rb', line 113

def inspect_str
  @inspect_str
end

Instance Method Details

#inspectObject



112
# File 'lib/redshift/target/c/component-gen.rb', line 112

def inspect; self.class.inspect_str; end