module Osheet::Format
Constants
- VALUES
Public Class Methods
new(type, *args)
click to toggle source
# File lib/osheet/format.rb, line 22 def self.new(type, *args) unless VALUES.include?(type.to_sym) raise ArgumentError, "'#{type.inspect}' is not a valid format type" end self.const_get(type.to_s.capitalize).new(*args) end