Module: Card::Set::Trait
- Included in:
- Card::Set
- Defined in:
- lib/card/set/trait.rb
Overview
ActiveCard support: accessing plus cards as attributes
Instance Method Summary collapse
Instance Method Details
#card_accessor(*args) ⇒ Object
5 6 7 8 |
# File 'lib/card/set/trait.rb', line 5 def card_accessor *args = args. add_traits args, .merge(reader: true, writer: true) end |
#card_reader(*args) ⇒ Object
10 11 12 13 |
# File 'lib/card/set/trait.rb', line 10 def card_reader *args = args. add_traits args, .merge(reader: true) end |
#card_writer(*args) ⇒ Object
15 16 17 18 |
# File 'lib/card/set/trait.rb', line 15 def card_writer *args = args. add_traits args, .merge(writer: true) end |