Module: ToPoro
- Defined in:
- lib/to_poro.rb,
lib/to_poro/version.rb
Constant Summary collapse
- VERSION =
"0.1.0"
Instance Method Summary collapse
Instance Method Details
#to_poro(*attributes) ⇒ Object
4 5 6 7 |
# File 'lib/to_poro.rb', line 4 def to_poro(*attributes) type = Struct.new(*attributes) pluck(*attributes).map { |a| type.new(*a) } end |