Module: Leafy::Mixin::DataAccessor::ClassMethods

Defined in:
lib/leafy/mixin/data_accessor.rb

Instance Method Summary collapse

Instance Method Details

#leafy_data_attributeObject



10
11
12
# File 'lib/leafy/mixin/data_accessor.rb', line 10

def leafy_data_attribute
  @leafy_data_attribute ||= :leafy_data
end

#leafy_data_attribute=(value) ⇒ Object



6
7
8
# File 'lib/leafy/mixin/data_accessor.rb', line 6

def leafy_data_attribute=(value)
  @leafy_data_attribute = value
end

#leafy_data_getterObject



14
# File 'lib/leafy/mixin/data_accessor.rb', line 14

def leafy_data_getter; leafy_data_attribute; end

#leafy_data_setterObject



16
# File 'lib/leafy/mixin/data_accessor.rb', line 16

def leafy_data_setter; "#{leafy_data_attribute}="; end