class Tryouts::Drill::Dream


Contains the expected response of a Drill
= Dream

def self.from_block(definition)

def self.from_block(definition)
  d = Tryouts::Drill::Dream.new
  d.from_block definition
  d
end

def ==(reality)

def ==(reality)
  Response.compare(self, reality)
end

def from_block(definition)

def from_block(definition)
  instance_eval &definition
  self
end

def inline(val=nil)

Takes a String +val+ and splits the lines into an Array.
def inline(val=nil)
  lines = (val.split($/) || [])
  lines.shift if lines.first.strip == ""
  lines.pop if lines.last.strip == ""
  lines
end