Sha256: 715c710a34822d273b4bdc50b3039ab9596ac128cc5764c3c78573272f98e633

Contents?: true

Size: 314 Bytes

Versions: 23

Compression:

Stored size: 314 Bytes

Contents

module Pugin
	module Feature
		class SimpleFeature
			@@enabled = false
			class << self
				attr_reader :enabled

				def enable
					@@enabled = true
				end

				def disable
					@@enabled = false
				end

				def enabled?
					@@enabled
				end

				def disabled?
					!@@enabled
				end
			end
		end
	end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
pugin-1.2.3 lib/pugin/feature/simple_feature.rb
pugin-1.2.2 lib/pugin/feature/simple_feature.rb
pugin-1.2.1 lib/pugin/feature/simple_feature.rb
pugin-1.2.0 lib/pugin/feature/simple_feature.rb
pugin-1.1.2 lib/pugin/feature/simple_feature.rb
pugin-1.0.1.pre lib/pugin/feature/simple_feature.rb
pugin-1.0.1 lib/pugin/feature/simple_feature.rb
pugin-1.0.0.pre lib/pugin/feature/simple_feature.rb
pugin-0.9.0 lib/pugin/feature/simple_feature.rb
pugin-0.8.9 lib/pugin/feature/simple_feature.rb
pugin-0.8.8 lib/pugin/feature/simple_feature.rb
pugin-0.8.7 lib/pugin/feature/simple_feature.rb
pugin-0.8.7.pre lib/pugin/feature/simple_feature.rb
pugin-0.8.6 lib/pugin/feature/simple_feature.rb
pugin-0.8.6.pre lib/pugin/feature/simple_feature.rb
pugin-0.8.5 lib/pugin/feature/simple_feature.rb
pugin-0.8.4 lib/pugin/feature/simple_feature.rb
pugin-0.8.3 lib/pugin/feature/simple_feature.rb
pugin-0.8.2 lib/pugin/feature/simple_feature.rb
pugin-0.8.1 lib/pugin/feature/simple_feature.rb