module Stannum

A library for specifying and validating data structures.

Constants

VERSION

The current version of the gem in Rubygems format.

Public Class Methods

gem_path() click to toggle source

@return [String] the absolute path to the gem directory.

# File lib/stannum.rb, line 17
def self.gem_path
  pattern = /#{File::SEPARATOR}lib#{File::SEPARATOR}?\z/

  __dir__.sub(pattern, '')
end
version() click to toggle source

@return [String] the current version of the gem.

# File lib/stannum.rb, line 24
def self.version
  @version ||= Stannum::Version.to_gem_version
end