Class: MotionPlot::AnchorPosition
- Inherits:
-
Object
- Object
- MotionPlot::AnchorPosition
- Defined in:
- lib/motion-plot/utilities/anchor_position.rb
Constant Summary collapse
- DEFAULTS =
{ :top_right => CPTRectAnchorTopRight, :bottom_left => CPTRectAnchorBottomLeft, :bottom => CPTRectAnchorBottom, :bottom_right => CPTRectAnchorBottomRight, :left => CPTRectAnchorLeft, :right => CPTRectAnchorRight, :top_left => CPTRectAnchorTopLeft, :top => CPTRectAnchorTop, :center => CPTRectAnchorCenter }
Class Method Summary collapse
Class Method Details
.method_missing(m, *args, &block) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/motion-plot/utilities/anchor_position.rb', line 17 def method_missing(m, *args, &block) method_name = m == :default ? :top : m raise unless(DEFAULTS.keys.include?(method_name)) DEFAULTS[method_name] end |