Class: Middleman::Sprockets::Interface

Inherits:
Object
  • Object
show all
Includes:
Contracts, Sprockets3, Sprockets4
Defined in:
lib/middleman-sprockets/interface.rb

Defined Under Namespace

Modules: Sprockets3, Sprockets4

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Sprockets3

#processible?, #setup!

Methods included from Sprockets4

#processible?, #setup!

Constructor Details

#initialize(options, environment) ⇒ Interface

Returns a new instance of Interface.



13
14
15
16
17
# File 'lib/middleman-sprockets/interface.rb', line 13

def initialize options, environment
  @options     = options
  @environment = environment
  setup!
end

Instance Attribute Details

#environmentObject (readonly)

Returns the value of attribute environment.



8
9
10
# File 'lib/middleman-sprockets/interface.rb', line 8

def environment
  @environment
end

#extensionsObject (readonly)

Returns the value of attribute extensions.



8
9
10
# File 'lib/middleman-sprockets/interface.rb', line 8

def extensions
  @extensions
end

#optionsObject (readonly)

Returns the value of attribute options.



8
9
10
# File 'lib/middleman-sprockets/interface.rb', line 8

def options
  @options
end