Class: ConsoleKit::Configuration

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

Overview

Stores configurations

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pretty_output: true, tenants: nil, context_class: nil) ⇒ Configuration

Returns a new instance of Configuration.



8
9
10
11
12
# File 'lib/console_kit/configuration.rb', line 8

def initialize(pretty_output: true, tenants: nil, context_class: nil)
  @pretty_output = pretty_output
  @tenants = tenants
  @context_class = context_class
end

Instance Attribute Details

#context_classObject

Returns the value of attribute context_class.



6
7
8
# File 'lib/console_kit/configuration.rb', line 6

def context_class
  @context_class
end

#pretty_outputObject

Returns the value of attribute pretty_output.



6
7
8
# File 'lib/console_kit/configuration.rb', line 6

def pretty_output
  @pretty_output
end

#tenantsObject

Returns the value of attribute tenants.



6
7
8
# File 'lib/console_kit/configuration.rb', line 6

def tenants
  @tenants
end