Sha256: fe962e74f24fd40f79ad55c6c088053d66b510b67502f1031b8c8ae545d7adcc

Contents?: true

Size: 454 Bytes

Versions: 1

Compression:

Stored size: 454 Bytes

Contents

module Boson
  # A library which takes a module as a library's name. Reload for this library
  # subclass is disabled.
  class ModuleLibrary < Library
    #:stopdoc:
    handles {|source| source.is_a?(Module) }

    def set_name(name)
      @module = name
      underscore_lib = name.to_s[/^Boson::Commands/] ? name.to_s.split('::')[-1] : name.to_s
      super Util.underscore(underscore_lib)
    end

    def reload; false; end
    #:startdoc:
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
boson-0.0.1 lib/boson/libraries/module_library.rb