Class: Creng::DaemonJS
- Inherits:
-
FileGenerator
- Object
- FileGenerator
- Creng::DaemonJS
- Defined in:
- lib/creng/files/daemonjs.rb
Instance Attribute Summary collapse
-
#contents ⇒ Object
readonly
Returns the value of attribute contents.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
- #create ⇒ Object
-
#initialize ⇒ DaemonJS
constructor
A new instance of DaemonJS.
Methods inherited from FileGenerator
#fetchImages, #fetchLibs, #generate, #generateHTML, #generateJS, #generateManifest, generateWebrequest, getAccessibleResources
Constructor Details
#initialize ⇒ DaemonJS
Returns a new instance of DaemonJS.
10 11 12 13 |
# File 'lib/creng/files/daemonjs.rb', line 10 def initialize @name = 'daemon.js' @path = 'js' end |
Instance Attribute Details
#contents ⇒ Object (readonly)
Returns the value of attribute contents.
8 9 10 |
# File 'lib/creng/files/daemonjs.rb', line 8 def contents @contents end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/creng/files/daemonjs.rb', line 6 def name @name end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
7 8 9 |
# File 'lib/creng/files/daemonjs.rb', line 7 def path @path end |
Instance Method Details
#create ⇒ Object
15 16 17 |
# File 'lib/creng/files/daemonjs.rb', line 15 def create puts "called create of #{@filename}" end |