Class: UniRails::App::Javascript
- Inherits:
-
Object
- Object
- UniRails::App::Javascript
- Includes:
- Singleton
- Defined in:
- lib/uni_rails/app/javascript.rb
Instance Attribute Summary collapse
-
#dependencies ⇒ Object
Returns the value of attribute dependencies.
-
#javascript ⇒ Object
Returns the value of attribute javascript.
Instance Method Summary collapse
- #imports ⇒ Object
-
#initialize ⇒ Javascript
constructor
A new instance of Javascript.
Constructor Details
#initialize ⇒ Javascript
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
#dependencies ⇒ Object
Returns the value of attribute dependencies.
13 14 15 |
# File 'lib/uni_rails/app/javascript.rb', line 13 def dependencies @dependencies end |
#javascript ⇒ Object
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
#imports ⇒ Object
19 20 21 |
# File 'lib/uni_rails/app/javascript.rb', line 19 def imports { imports: dependencies } end |