Module: Messaging::Postgres::StreamName::Macro
- Defined in:
- lib/messaging/postgres/stream_name.rb
Instance Method Summary collapse
- #category_macro(category) ⇒ Object (also: #category)
Instance Method Details
#category_macro(category) ⇒ Object Also known as: category
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/messaging/postgres/stream_name.rb', line 18 def category_macro(category) category = Casing::Camel.(category, symbol_to_string: true) self.send :define_method, :category do @category ||= category end self.send :define_method, :category= do |category| @category = category end end |