Sha256: c8780d9d9c98504fff3d33afd8234e91170e1b90a74947b97bc7e122c61f2169
Contents?: true
Size: 700 Bytes
Versions: 2
Compression:
Stored size: 700 Bytes
Contents
module Vedeu # Allows the storing of interface/view borders independent of the interface # instance. # class Borders < Repository class << self # @return [Vedeu::Borders] def borders @borders ||= reset! end alias_method :repository, :borders # @return [Vedeu::Borders] def reset! @borders = Vedeu::Borders.register_repository(Vedeu::Border) end end # @param name [String] The name of the stored border. # @return [Vedeu::Border|Vedeu::NullBorder] def by_name(name) if registered?(name) find(name) else Vedeu::NullBorder.new(name) end end end # Borders end # Vedeu
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.4.17 | lib/vedeu/repositories/repositories/borders.rb |
vedeu-0.4.16 | lib/vedeu/repositories/repositories/borders.rb |