Exception: Xampl::XamplIsInvalid

Inherits:
Exception
  • Object
show all
Defined in:
lib/xamplr/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(xampl) ⇒ XamplIsInvalid

Returns a new instance of XamplIsInvalid.



6
7
8
9
# File 'lib/xamplr/exceptions.rb', line 6

def initialize(xampl)
  @xampl = xampl
  @msg = "Invalid Xampl:: #{xampl}"
end

Instance Attribute Details

#msgObject (readonly)

Returns the value of attribute msg.



4
5
6
# File 'lib/xamplr/exceptions.rb', line 4

def msg
  @msg
end

#xamplObject (readonly)

Returns the value of attribute xampl.



4
5
6
# File 'lib/xamplr/exceptions.rb', line 4

def xampl
  @xampl
end

Instance Method Details

#messageObject



11
12
13
# File 'lib/xamplr/exceptions.rb', line 11

def message
  @msg
end