Sha256: 12de73e2961dd930c8d1981d95adbeb563ddbe42f5e33a554ebba1e2c65c55d7
Contents?: true
Size: 329 Bytes
Versions: 2
Compression:
Stored size: 329 Bytes
Contents
# Namespace for the Taipu library. module Taipu # Abstract class. class Base def initialize(*) freeze end def to_h { type: to_sym }.merge(constraints) end def to_sym self.class.name.split('::').last.downcase.to_sym end def constraints {} end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
taipu-0.0.2 | lib/taipu/base.rb |
taipu-0.0.1 | lib/taipu/base.rb |