Commit 65e8140c authored by charlie-ablett's avatar charlie-ablett

Description method is a class method

parent 7a167a09
......@@ -70,7 +70,7 @@ module InkStep
raise NotImplementedError.new("You need to provide a Version method in your step (#{self.class.name}) that points to your gem version (see CokoDemoSteps example)")
end
def description
def self.description
return "A basic step that returns the files you provide unchanged" if self.class.name == "InkStep::Base"
raise NotImplementedError.new("You need to provide a Description method in your step (#{self.class.name}) that returns a string - a brief summary of what your step does (see CokoDemoSteps example)")
end
......
......@@ -24,7 +24,7 @@ module InkStep
InkStep::VERSION
end
def description
def self.description
"A validator that returns the result you tell it to."
end
end
......
module InkStep
VERSION = '0.1.5'
VERSION = '0.1.6'
end
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment