Class: Rpa::Asset
- Inherits:
-
Object
- Object
- Rpa::Asset
- Defined in:
- lib/rpa/asset.rb
Instance Method Summary collapse
- #css ⇒ Object
- #html ⇒ Object
-
#initialize(photo_map, options = {}) ⇒ Asset
constructor
A new instance of Asset.
- #js ⇒ Object
Constructor Details
#initialize(photo_map, options = {}) ⇒ Asset
Returns a new instance of Asset.
6 7 8 9 |
# File 'lib/rpa/asset.rb', line 6 def initialize(photo_map, = {}) @photo_map = photo_map @options = end |
Instance Method Details
#css ⇒ Object
21 22 23 |
# File 'lib/rpa/asset.rb', line 21 def css path('app.css') end |
#html ⇒ Object
11 12 13 14 15 |
# File 'lib/rpa/asset.rb', line 11 def html photo_map = @photo_map = @options build('app.html.erb', binding) end |
#js ⇒ Object
17 18 19 |
# File 'lib/rpa/asset.rb', line 17 def js path('app.js') end |