Sha256: 62f475012473e0a5358d1a528f629553974914642b2dc16c3eea186f8c3bdcfd
Contents?: true
Size: 361 Bytes
Versions: 2
Compression:
Stored size: 361 Bytes
Contents
module Nyanko module UnitProxyProvider extend ActiveSupport::Concern included do extend UnitProxyProvider include Helper end def unit(name = nil) name ||= Function.current_unit.try(:to_key) if name && unit = Loader.load(name) UnitProxy.new(unit, self) end end alias_method :ext, :unit end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nyanko-0.0.5 | lib/nyanko/unit_proxy_provider.rb |
nyanko-0.0.4 | lib/nyanko/unit_proxy_provider.rb |