wedding-planner/config/initializers/ruby_extensions.rb
Manuel Bustillo 29d9d21916
All checks were successful
Check usage of free licenses / build-static-assets (pull_request) Successful in 44s
Add copyright notice / copyright_notice (pull_request) Successful in 59s
Run unit tests / unit_tests (pull_request) Successful in 1m33s
Use sets instead of arrays to represent tables
2024-11-10 17:30:01 +01:00

13 lines
185 B
Ruby

# Copyright (C) 2024 Manuel Bustillo
class Numeric
def to_currency
Money.from_amount(self, "EUR").format
end
end
class Set
def to_table
Tables::Table.new(self)
end
end