Sha256: 3c995542f761fd33cd78cfde590c8a2f28cc82e1eb512c0c5af30d15cbfd68f8

Contents?: true

Size: 317 Bytes

Versions: 9

Compression:

Stored size: 317 Bytes

Contents

module WorldFlags
  module Util
    module NameEnabler
      attr_writer :name_enabled

      def name_enabled?
        @name_enabled.nil? ? true : @name_enabled
      end

      def name_disable!
        @name_enabled = false
      end

      def name_enable!
        @name_enabled = true
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
world-flags-0.6.6 lib/world_flags/util/name_enabler.rb
world-flags-0.6.5 lib/world_flags/util/name_enabler.rb
world-flags-0.6.4 lib/world_flags/util/name_enabler.rb
world-flags-0.6.3.1 lib/world_flags/util/name_enabler.rb
world-flags-0.6.3 lib/world_flags/util/name_enabler.rb
world-flags-0.6.2.1 lib/world_flags/util/name_enabler.rb
world-flags-0.6.2 lib/world_flags/util/name_enabler.rb
world-flags-0.6.1.1 lib/world_flags/util/name_enabler.rb
world-flags-0.6.1 lib/world_flags/util/name_enabler.rb