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.



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

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

Instance Attribute Details

#msgObject (readonly)

Returns the value of attribute msg.



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

def msg
  @msg
end

#xamplObject (readonly)

Returns the value of attribute xampl.



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

def xampl
  @xampl
end

Instance Method Details

#messageObject



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

def message
  @msg
end