Registry / utility / show-for

show-for

JSON →
library0.9.0rbrubygemsunverified

Wrap your objects with a helper to easily show them

gem install show_for
INSTALL
IMPORT
SIG · SHOW-FOR
S
show-for
utilityrubyv0.9.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ShowFor
require 'show_for'

Display object attributes using ShowFor helper

require 'show_for' class User attr_accessor :name, :email end user = User.new user.name = 'John' user.email = 'john@example.com' helper = ShowFor::Helper.new(user) puts helper.show(:name) # => John
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.9.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
show-for — gem install show-for · libregistry