Improve coding standards

This commit is contained in:
Thibault Jouan
2013-12-20 06:46:28 +00:00
parent 0b68a8165d
commit 9251c6af8e
4 changed files with 21 additions and 15 deletions

View File

@@ -1,12 +1,14 @@
module Producer
module Core
class Recipe
attr_accessor :tasks
def self.evaluate_from_file(filepath, env)
DSL.evaluate(File.read(filepath), env)
class << self
def evaluate_from_file(filepath, env)
DSL.evaluate(File.read(filepath), env)
end
end
attr_accessor :tasks
def initialize(tasks = [])
@tasks = tasks
end