Class: Cyrun::SpecTask

Inherits:
Object
  • Object
show all
Defined in:
lib/cyrun/spec_task.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#filenameObject (readonly)

Returns the value of attribute filename.



5
6
7
# File 'lib/cyrun/spec_task.rb', line 5

def filename
  @filename
end

#npm_task_nameObject (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

#nameObject



12
13
14
# File 'lib/cyrun/spec_task.rb', line 12

def name
  File.basename(filename)
end