class Hashape::Specifiers::Specifier

The basic specifier. You should probably never use this.

Attributes

spec[R]

Public Class Methods

[](spec) click to toggle source

A shorthand for constructing an instance of any specifier. @param [*] spec The type spec for this specifier to match against. @return [Specifier] A new specifier.

# File lib/hashape.rb, line 21
def self.[](spec)
  self.new(spec)
end
new(spec) click to toggle source

Creates a new specifier. @param [*] spec The type spec for this specifier to match against. @return [Specifier] A new specifier.

# File lib/hashape.rb, line 29
def initialize(spec)
  @spec = spec
end