Class: Kumade::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/kumade/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#environmentObject



9
10
11
# File 'lib/kumade/configuration.rb', line 9

def environment
  @environment || "staging"
end

#pretending=(value) ⇒ Object (writeonly)

Sets the attribute pretending

Parameters:

  • value

    the value to set the attribute pretending to.



3
4
5
# File 'lib/kumade/configuration.rb', line 3

def pretending=(value)
  @pretending = value
end

Instance Method Details

#outputterObject



13
14
15
# File 'lib/kumade/configuration.rb', line 13

def outputter
  @outputter ||= Outputter.new
end

#outputter=(new_outputter) ⇒ Object



17
18
19
# File 'lib/kumade/configuration.rb', line 17

def outputter=(new_outputter)
  @outputter = new_outputter
end

#pretending?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/kumade/configuration.rb', line 5

def pretending?
  @pretending || false
end