Class: Vue::Configuration::Generators

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|_self| ... } ⇒ Generators

Returns a new instance of Generators.

Yields:

  • (_self)

Yield Parameters:



34
35
36
37
38
39
40
41
42
# File 'lib/vue/configuration.rb', line 34

def initialize
  @styles = ActiveSupport::OrderedOptions.new
  @styles.lang = :scss
  @styles.scoped = true
  @syntax = :es2015
  @packs = true
  @single_file_component = true
  yield self if block_given?
end

Instance Attribute Details

#packsObject

Returns the value of attribute packs.



32
33
34
# File 'lib/vue/configuration.rb', line 32

def packs
  @packs
end

#single_file_componentObject

Returns the value of attribute single_file_component.



32
33
34
# File 'lib/vue/configuration.rb', line 32

def single_file_component
  @single_file_component
end

#stylesObject

Returns the value of attribute styles.



32
33
34
# File 'lib/vue/configuration.rb', line 32

def styles
  @styles
end

#syntaxObject

Returns the value of attribute syntax.



32
33
34
# File 'lib/vue/configuration.rb', line 32

def syntax
  @syntax
end