Class: Nendo::NendoTestError

Inherits:
Object
  • Object
show all
Defined in:
lib/nendo/ruby/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = RuntimeError) ⇒ NendoTestError

Returns a new instance of NendoTestError.



222
223
224
# File 'lib/nendo/ruby/types.rb', line 222

def initialize( type = RuntimeError )
  @type = type
end

Instance Attribute Details

#typeObject

Returns the value of attribute type.



229
230
231
# File 'lib/nendo/ruby/types.rb', line 229

def type
  @type
end

Instance Method Details

#to_sObject



226
227
228
# File 'lib/nendo/ruby/types.rb', line 226

def to_s
  type.to_s
end