Class: Preseason::Config::IE8

Inherits:
Object
  • Object
show all
Includes:
Preseason::Config
Defined in:
lib/preseason/config/ie8.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Preseason::Colorize

#ask, #readme, #yes?

Methods included from GeneratorContext

#method_missing

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Preseason::GeneratorContext

Instance Attribute Details

#enabledObject

Returns the value of attribute enabled.



6
7
8
# File 'lib/preseason/config/ie8.rb', line 6

def enabled
  @enabled
end

Instance Method Details

#ask_userObject



8
9
10
# File 'lib/preseason/config/ie8.rb', line 8

def ask_user
  self.enabled = yes? "Will this app need to support Internet Explorer 8 (install selectivizr.js and respond.js)? [y/n]"
end

#enabled?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/preseason/config/ie8.rb', line 12

def enabled?
  enabled
end