Module: Boson::Library::API

Included in:
Boson::Library
Defined in:
lib/boson/library.rb

Instance Method Summary collapse

Instance Method Details

#before_initializeObject

Method hook called at the beginning of initialize



74
75
# File 'lib/boson/library.rb', line 74

def before_initialize
end

#configHash

Returns Attributes used internally by a library. Defaults to using Boson.config but can be overridden to be library-specific.

Returns:

  • (Hash)

    Attributes used internally by a library. Defaults to using Boson.config but can be overridden to be library-specific.



84
85
86
# File 'lib/boson/library.rb', line 84

def config
  Boson.config
end

#local?Boolean

Determines if library is local i.e. scoped to current directory/project

Returns:

  • (Boolean)


78
79
80
# File 'lib/boson/library.rb', line 78

def local?
  false
end

#namespace_objectObject

The object a library uses for executing its commands.



69
70
71
# File 'lib/boson/library.rb', line 69

def namespace_object
  @namespace_object ||= Boson.main_object
end