module Necromancer
Constants
- ConversionTypeError
Raised when cannot conver to a given type
- NoTypeConversionAvailableError
Raised when conversion type is not available
- VERSION
Public Class Methods
convert(*args, &block)
click to toggle source
Convenience to directly call conversion
@example
Necromancer.convert('1').to(:integer)
@return [ConversionTarget]
@api public
# File lib/necromancer.rb, line 33 def convert(*args, &block) Context.new.convert(*args, &block) end
new(&block)
click to toggle source
Create a conversion instance
@example
converter = Necromancer.new
@return [Context]
@api private
# File lib/necromancer.rb, line 20 def new(&block) Context.new(&block) end