Class: Shutterbug::Service::JSFile
- Defined in:
- lib/shutterbug/service.rb
Instance Method Summary collapse
-
#initialize(_filename) ⇒ JSFile
constructor
A new instance of JSFile.
- #open ⇒ Object
Methods inherited from RackFile
Constructor Details
#initialize(_filename) ⇒ JSFile
Returns a new instance of JSFile.
29 30 31 |
# File 'lib/shutterbug/service.rb', line 29 def initialize(_filename) @javascript = File.read(_filename).gsub(/CONVERT_PATH/,Shutterbug::Rackapp::CONVERT_PATH) end |
Instance Method Details
#open ⇒ Object
32 33 34 |
# File 'lib/shutterbug/service.rb', line 32 def open @stream_file = StringIO.new(@javascript) end |