Module: MagnumPI

Defined in:
lib/magnum-pi.rb,
lib/magnum-pi/api.rb,
lib/magnum-pi/dsl.rb,
lib/magnum-pi/version.rb,
lib/magnum-pi/api/scheme.rb,
lib/magnum-pi/api/consumer.rb,
lib/magnum-pi/api/instance.rb,
lib/magnum-pi/api/resources.rb,
lib/magnum-pi/api/inheritance.rb

Defined Under Namespace

Modules: API Classes: DSL

Constant Summary collapse

MAJOR =
0
MINOR =
2
TINY =
11
VERSION =
[MAJOR, MINOR, TINY].join(".")

Class Method Summary collapse

Class Method Details

.debug_output(bool = true) ⇒ Object



19
20
21
# File 'lib/magnum-pi.rb', line 19

def self.debug_output(bool = true)
  @debug_output = bool
end

.debug_output?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/magnum-pi.rb', line 23

def self.debug_output?
  !!@debug_output
end

.extended(base) ⇒ Object



15
16
17
# File 'lib/magnum-pi.rb', line 15

def self.extended(base)
  base.extend API
end