Sha256: 38508795388f808608a733ff26c6088ddbd698b11371ddfb8d993720f8559cde

Contents?: true

Size: 445 Bytes

Versions: 2

Compression:

Stored size: 445 Bytes

Contents

require_relative 'text_color'
require_relative 'element_settings'

module WhirledPeas
  module Settings
    class GraphSettings < ElementSettings
      def axis_color
        @_axis_color || 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

2 entries across 2 versions & 1 rubygems

Version Path
whirled_peas-0.9.1 lib/whirled_peas/settings/graph_settings.rb
whirled_peas-0.9.0 lib/whirled_peas/settings/graph_settings.rb