portrayal

A minimal builder for struct-like classes in Ruby (by maxim)

Portrayal Alternatives

Similar projects and alternatives to portrayal based on common topics and language

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better portrayal alternative or higher similarity.

portrayal reviews and mentions

Posts with mentions or reviews of portrayal. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-01-23.
  • An Overview of Ruby on Rails 7.1 Features. Part III
    4 projects | news.ycombinator.com | 23 Jan 2023
    I've been had great success building form objects with portrayal (https://github.com/scottscheapflights/portrayal) and ActiveModel. You can put validations into them, use them as form objects. Auto-filter the params based on class-level `portrayal.attributes` by making a `from_params`-type constructor. You're right that it'd be nice to have this out of the box, but this is just a few lines of glue code to setup. I'm in process of working on a new app template that does that.

Stats

Basic portrayal repo stats
1
67
4.5
9 months ago

maxim/portrayal is an open source project licensed under Apache License 2.0 which is an OSI approved license.

The primary programming language of portrayal is Ruby.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com