We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alternative 1
With argument
HoneyFormat::Matrix.new( data, calculated_columns: [[ :full_name, proc { |row| "#{row.first_name} #{row.last_name}" } ], [ :can_vote?, proc { |row| row.age } ]] )
Don't like the name calculated_columns
calculated_columns
Alternative 2
With builder
HoneyFormat::Matrix.new(data) do |builder| builder.add_column( :full_name, proc { |row| "#{row.first_name} #{row.last_name}" } ) end
If going with this we'd need to set/configure other things the same way like builder.type_map({ username: proc { |v| v.upcase } }).
builder.type_map({ username: proc { |v| v.upcase } })
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Ideas 💡
Alternative 1
With argument
Don't like the name
calculated_columns
Alternative 2
With builder
If going with this we'd need to set/configure other things the same way like
builder.type_map({ username: proc { |v| v.upcase } })
.The text was updated successfully, but these errors were encountered: