class Warp::Dir::Formatter::PointFormatter
Attributes
point[RW]
Public Class Methods
new(point)
click to toggle source
# File lib/warp/dir/formatter.rb, line 41 def initialize(point) @point = point end
Public Instance Methods
format(type = DEFAULT_FORMAT, width = 0)
click to toggle source
# File lib/warp/dir/formatter.rb, line 45 def format(type = DEFAULT_FORMAT, width = 0) case type when :ascii point.to_s(width) else raise ArgumentError.new("Type #{type} is not recognized.") end end