Class: Cyrun::SpecTask
- Inherits:
-
Object
- Object
- Cyrun::SpecTask
- Defined in:
- lib/cyrun/spec_task.rb
Instance Attribute Summary collapse
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
-
#npm_task_name ⇒ Object
readonly
Returns the value of attribute npm_task_name.
Instance Method Summary collapse
-
#initialize(filename, npm_task_name) ⇒ SpecTask
constructor
A new instance of SpecTask.
- #name ⇒ Object
Constructor Details
#initialize(filename, npm_task_name) ⇒ SpecTask
Returns a new instance of SpecTask.
7 8 9 10 |
# File 'lib/cyrun/spec_task.rb', line 7 def initialize(filename, npm_task_name) @filename = filename @npm_task_name = npm_task_name end |
Instance Attribute Details
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
5 6 7 |
# File 'lib/cyrun/spec_task.rb', line 5 def filename @filename end |
#npm_task_name ⇒ Object (readonly)
Returns the value of attribute npm_task_name.
5 6 7 |
# File 'lib/cyrun/spec_task.rb', line 5 def npm_task_name @npm_task_name end |
Instance Method Details
#name ⇒ Object
12 13 14 |
# File 'lib/cyrun/spec_task.rb', line 12 def name File.basename(filename) end |