representable icon indicating copy to clipboard operation
representable copied to clipboard

Maps representation documents from and to Ruby objects. Includes JSON, XML and YAML support, plain properties and compositions.

Results 59 representable issues
Sort by recently updated
recently updated
newest added

Allow `:default` option on `property` to be accepted as static value or any callable. ```ruby property :album, default: "Spring" property :album, default: ->(represented:, **) { represented.default_album } ```

Virtus is discountinued and was replaced by it author with Dry-types rewrite test with new ruby syntax

It fails with a mysterious message, a method expects a `definition` object but receives an array! appreciate any help, thanks! ``` ["_self", #_self @options={:getter=>#, :render_nil=>true, :if=>#, :collection=>true, :name=>"_self", :parse_filter=>[], :render_filter=>[]}>]/Users/jani/.rbenv/versions/truffleruby-21.3.0/lib/gems/gems/representable-3.1.1/lib/representable/binding.rb:34:in...

Hi! I'm not sure if this is a bug or if there is some way to deal with it. Given a representable with a collection inside: ```ruby class SongRepresenter <...

Hi there, I've looked through the documentation and test examples and don't seem to see a way to parse array of arrays. Some JSON I'm trying to parse for example...

I have a case when I need to use same decorator for different properties. Just now I using subclasses for it what is annoying when you have a lot of...

This is helpful when the property is a nested one and the associated representer expects a real instance, not a fragment. We have a scenario where we use the 'instance'...

I might be misunderstanding the intention of `OverwriteOnNil`, but it seems like you'd want to use `Setter` if a `:setter` is defined for the property. If I am misunderstanding, please...

I wrapped the MRI and Rubinius Profiler so that we can write tests against both. TODOs: - [ ] Find out why rbx list othere calls then mri, maybe we...

@apotonick An alternative would be for `#from_hash` to fail silently (i.e. `data = {} unless ::Hash === data`). However, I think raising a `TypeError` makes more sense in a web...