Sha256: 0d34bc68674b48b9dbb89b8621d77d996f6418a1fd79d254ba1f51018074d5d9

Contents?: true

Size: 283 Bytes

Versions: 26

Compression:

Stored size: 283 Bytes

Contents

# frozen_string_literal: true

module DecoLite
  # Takes an array of symbols and creates attr_accessors.
  module FieldNamesPersistable
    def field_names
      @field_names ||= instance_variable_get(:@field_names) || []
    end

    private

    attr_writer :field_names
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
deco_lite-0.3.3 lib/deco_lite/field_names_persistable.rb
deco_lite-0.3.2 lib/deco_lite/field_names_persistable.rb
deco_lite-0.3.1 lib/deco_lite/field_names_persistable.rb
deco_lite-0.3.0 lib/deco_lite/field_names_persistable.rb
deco_lite-0.2.5 lib/deco_lite/field_names_persistable.rb
deco_lite-0.2.4 lib/deco_lite/field_names_persistable.rb