Class: UniRails::App::Javascript

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/uni_rails/app/javascript.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeJavascript

Returns a new instance of Javascript.



14
15
16
17
# File 'lib/uni_rails/app/javascript.rb', line 14

def initialize
  @dependencies = {}
  @javascript = ""
end

Instance Attribute Details

#dependenciesObject

Returns the value of attribute dependencies.



13
14
15
# File 'lib/uni_rails/app/javascript.rb', line 13

def dependencies
  @dependencies
end

#javascriptObject

Returns the value of attribute javascript.



13
14
15
# File 'lib/uni_rails/app/javascript.rb', line 13

def javascript
  @javascript
end

Instance Method Details

#importsObject



19
20
21
# File 'lib/uni_rails/app/javascript.rb', line 19

def imports
  { imports: dependencies }
end