Cloud-oriented Life

Cloud Native Technology Improves Lives

If your project includes ActiveSupport, and every Rails project does, you have a more clean and easy way to implement the delegation pattern: the Module#delegate extension. It provides a delegate module you can use in your class or in your modules to delegate a specific method to an associate object.

#delegate provides a delegate class method to easily expose contained objects’ public methods as your own.

Read more »

Forwardable

The Forwardable module provides delegation of specified methods to a designated object, using the methods def_delegator and def_delegators.

forwardable.rb provides single-method delegation via the #def_delegator and #def_delegators methods. For full-class delegation via DelegateClass, see delegate.rb.

Read more »

parser

unparser generate equivalent source for ASTs from parser. You can also use unparser to produce equivalent source code from Parser’s ASTs whitequark/parser: A Ruby parser. - https://github.com/whitequark/parser.

Read more »

Rails 7 adds change tracking methods for belongs_to associations

Sometimes minor updates add the most joy to users! A recent Rails update introduced the ability to monitor for changes in belongs_to associations. This brings in a welcome change for developers who like to conform to “the Rails way”.

Read more »

PaddleOCR

PaddleOCR aims to create multilingual, awesome, leading, and practical OCR tools that help users train better models and apply them into practice.

PaddleOCR is the awesome multilingual OCR toolkits based on PaddlePaddle (practical ultra lightweight OCR system, support 80+ languages recognition, provide data annotation and synthesis tools, support training and deployment among server, mobile, embedded and IoT devices).

Read more »
0%