Sha256: a0a9acd056d36432f3b812ca229db598fc993b4e06d7d7d7e5740a4c5a3b14da
Contents?: true
Size: 506 Bytes
Versions: 6
Compression:
Stored size: 506 Bytes
Contents
module Faalis class Configuration class << self attr_accessor :features, :enabled_features def enabled_features @enabled_features || [] end def features [:colorize_output] end def enable(feature) fail "No such feature: '#{feature}'" unless features.include? feature features << featue unless enabled_features.include? feature end def disable fail 'TODO: create a disable method' end end end end
Version data entries
6 entries across 6 versions & 1 rubygems