From a20100f3f85b2c3cf1020a75f77c62982fb57bff Mon Sep 17 00:00:00 2001 From: Andy Meneely Date: Tue, 26 May 2015 20:55:11 -0400 Subject: [PATCH] Hiding private stuff from public documentation --- lib/squib/args/typographer.rb | 3 +++ lib/squib/graphics/cairo_context_wrapper.rb | 1 + lib/squib/graphics/gradient_regex.rb | 1 + lib/squib/graphics/shapes.rb | 3 +++ 4 files changed, 8 insertions(+) diff --git a/lib/squib/args/typographer.rb b/lib/squib/args/typographer.rb index 9768c57..79de92c 100644 --- a/lib/squib/args/typographer.rb +++ b/lib/squib/args/typographer.rb @@ -1,6 +1,9 @@ require 'squib/constants' module Squib + #@api private module Args + # Internal class for handling arguments + #@api private class Typographer def initialize(config = Conf::DEFAULTS) diff --git a/lib/squib/graphics/cairo_context_wrapper.rb b/lib/squib/graphics/cairo_context_wrapper.rb index 55737fc..60bf750 100644 --- a/lib/squib/graphics/cairo_context_wrapper.rb +++ b/lib/squib/graphics/cairo_context_wrapper.rb @@ -4,6 +4,7 @@ require 'squib/graphics/gradient_regex' module Squib module Graphics # Wrapper class for the Cairo context. Private. + # @api private class CairoContextWrapper extend Forwardable diff --git a/lib/squib/graphics/gradient_regex.rb b/lib/squib/graphics/gradient_regex.rb index e1e78d1..8605153 100644 --- a/lib/squib/graphics/gradient_regex.rb +++ b/lib/squib/graphics/gradient_regex.rb @@ -1,4 +1,5 @@ module Squib + # @api private module Graphics STOPS = / # used to capture the stops \s* # leading whitespace is ok diff --git a/lib/squib/graphics/shapes.rb b/lib/squib/graphics/shapes.rb index 91d3bb4..9298b75 100644 --- a/lib/squib/graphics/shapes.rb +++ b/lib/squib/graphics/shapes.rb @@ -1,4 +1,5 @@ module Squib + # @api private class Card # :nodoc: @@ -125,6 +126,8 @@ module Squib end end + # :nodoc: + # @api private def polygon(x, y, n, angle, radius, fill_color, stroke_color, stroke_width) use_cairo do |cc| cc.translate(x, y)