Class: GridSizeDisplay::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/rails-bootstrap-sass-grid_size_display.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



16
17
18
# File 'lib/rails-bootstrap-sass-grid_size_display.rb', line 16

def initialize
  @enabled = Rails.env.development?
end

Instance Attribute Details

#enabledObject

Returns the value of attribute enabled.



14
15
16
# File 'lib/rails-bootstrap-sass-grid_size_display.rb', line 14

def enabled
  @enabled
end

Instance Method Details

#enabled?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/rails-bootstrap-sass-grid_size_display.rb', line 20

def enabled?
  @enabled
end