Module: ShadowClassesSupport::ClassMethods
- Defined in:
- lib/fiona7/shadow_classes.rb
Instance Method Summary collapse
- #real_to_s ⇒ Object
-
#to_s ⇒ Object
NOTE: this workaround is neccessary, because in many places scrivito_sdk assumes that class.name == obj_class_name which isn’t true for shadow classes it breaks the bijection that scrivito_sdk expects, but injection is mostly ok.
Instance Method Details
#real_to_s ⇒ Object
7 |
# File 'lib/fiona7/shadow_classes.rb', line 7 alias_method :real_to_s, :to_s |
#to_s ⇒ Object
NOTE: this workaround is neccessary, because in many places scrivito_sdk assumes that class.name == obj_class_name which isn’t true for shadow classes it breaks the bijection that scrivito_sdk expects, but injection is mostly ok
14 15 16 |
# File 'lib/fiona7/shadow_classes.rb', line 14 def to_s self.name.sub(/\AShadowClasses::/, '') end |