Exception: ECSHelper::Error::Base

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ecs_helper/error/base.rb

Instance Method Summary collapse

Constructor Details

#initialize(builder) ⇒ Base

Returns a new instance of Base.



2
3
4
# File 'lib/ecs_helper/error/base.rb', line 2

def initialize(builder)
  @builder = builder
end

Instance Method Details

#messageObject



6
7
8
9
# File 'lib/ecs_helper/error/base.rb', line 6

def message
  return @builder.join("\n") if @builder
  "Failed"
end