Class: Startback::Web::MagicAssets::RakeTasks

Inherits:
Object
  • Object
show all
Defined in:
lib/startback/web/magic_assets/rake_tasks.rb

Constant Summary collapse

DEFAULT_OPTIONS =
{
  :namespace => :assets
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rake, options) ⇒ RakeTasks

Returns a new instance of RakeTasks.



10
11
12
13
14
# File 'lib/startback/web/magic_assets/rake_tasks.rb', line 10

def initialize(rake, options)
  @rake = rake
  @options = DEFAULT_OPTIONS.merge(options)
  install
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



15
16
17
# File 'lib/startback/web/magic_assets/rake_tasks.rb', line 15

def options
  @options
end

#rakeObject (readonly)

Returns the value of attribute rake.



15
16
17
# File 'lib/startback/web/magic_assets/rake_tasks.rb', line 15

def rake
  @rake
end