Class: RGhost::PointWithCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/rghost/point_with_command.rb

Overview

:nodoc:

Constant Summary collapse

DEFAULT_POINT =
{:x => :limit_left , :y => :current_row}

Class Method Summary collapse

Class Method Details

.to(command, point = {}) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/rghost/point_with_command.rb', line 7

def self.to(command,point={})
 
  p=DEFAULT_POINT.dup.merge(point)
 
  p=RGhost::Point.new(p[:x],p[:y])
  RGhost::PsObject.new "#{p.ps}#{command}"
end