Module: Leafy::Mixin::DataAccessor::ClassMethods
- Defined in:
- lib/leafy/mixin/data_accessor.rb
Instance Method Summary collapse
- #leafy_data_attribute ⇒ Object
- #leafy_data_attribute=(value) ⇒ Object
- #leafy_data_getter ⇒ Object
- #leafy_data_setter ⇒ Object
Instance Method Details
#leafy_data_attribute ⇒ Object
12 13 14 |
# File 'lib/leafy/mixin/data_accessor.rb', line 12 def leafy_data_attribute @leafy_data_attribute ||= :leafy_data end |
#leafy_data_attribute=(value) ⇒ Object
8 9 10 |
# File 'lib/leafy/mixin/data_accessor.rb', line 8 def leafy_data_attribute=(value) @leafy_data_attribute = value end |
#leafy_data_getter ⇒ Object
16 |
# File 'lib/leafy/mixin/data_accessor.rb', line 16 def leafy_data_getter; leafy_data_attribute; end |
#leafy_data_setter ⇒ Object
18 |
# File 'lib/leafy/mixin/data_accessor.rb', line 18 def leafy_data_setter; "#{leafy_data_attribute}="; end |