{"id":78590,"library":"draper","title":"Draper","description":"Adds an object-oriented layer of presentation logic to your Rails apps.","status":"active","version":"4.0.6","language":"ruby","source_language":null,"source_url":"https://github.com/drapergem/draper","tags":["rails","decorator","presentation","view-layer"],"install":[{"cmd":"gem install draper","lang":"bash","label":"gem install"},{"cmd":"# Gemfile\ngem 'draper', '~> 4.0.6'","lang":"ruby","label":"Gemfile"}],"dependencies":[],"imports":[{"symbol":"Draper","correct":"require 'draper'"}],"quickstart":{"code":"require 'draper'\nclass ProductDecorator < Draper::Decorator\n  def formatted_price\n    \"$#{object.price}\"\n  end\nend","lang":"ruby","description":"Define a decorator for a model"},"warnings":[],"env_vars":null,"search_vec":"'add':2 'app':14 'decor':16 'draper':1 'layer':7,20 'logic':10 'object':5 'object-ori':4 'orient':6 'present':9,17 'rail':13,15 'view':19 'view-lay':18","created_at":"2026-06-18T04:23:19.292802+00:00","updated_at":"2026-06-18T04:23:19.292802+00:00","problems":[],"ecosystem":"rubygems","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/drapergem/draper","github":"https://github.com/drapergem/draper","docs":"http://www.rubydoc.info/gems/draper/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["web-framework","other"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-18","next_check":"2026-12-15","install_tag":null}}