module Typist
This is the top level module for the gem, used as a namespace and as a location for high-level functions.
This file holds version information for the gem.
Constants
- VERSION
Public Class Methods
data(*args, &block)
click to toggle source
Define a new data type.
# File lib/typist.rb, line 12 def data(*args, &block) Data.new(*args, &block).define!(self.is_a?(Module) ? self : Kernel) end
Private Instance Methods
data(*args, &block)
click to toggle source
Define a new data type.
# File lib/typist.rb, line 12 def data(*args, &block) Data.new(*args, &block).define!(self.is_a?(Module) ? self : Kernel) end