Sha256: 885e23fe91d065d32efff23fee453630ec68c8fb1a6cabbb8033f283738ecbde

Contents?: true

Size: 456 Bytes

Versions: 5

Compression:

Stored size: 456 Bytes

Contents

require_relative 'text_color'
require_relative 'element_settings'

module WhirledPeas
  module Settings
    class GraphSettings < ElementSettings
      def axis_color
        @_axis_color || theme.axis_color
      end

      def axis_color=(color)
        @_axis_color = TextColor.validate!(color)
      end

      def validate!
        super
        raise SettingsError, "`height` must be set for GraphSettings" if height.nil?
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
whirled_peas-0.13.0 lib/whirled_peas/settings/graph_settings.rb
whirled_peas-0.12.0 lib/whirled_peas/settings/graph_settings.rb
whirled_peas-0.11.1 lib/whirled_peas/settings/graph_settings.rb
whirled_peas-0.11.0 lib/whirled_peas/settings/graph_settings.rb
whirled_peas-0.10.0 lib/whirled_peas/settings/graph_settings.rb