Exception: Ragweed::Wrap32::WinX
- Defined in:
- lib/ragweed/wrap32/winx.rb
Instance Attribute Summary collapse
-
#call ⇒ Object
readonly
Returns the value of attribute call.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#msg ⇒ Object
readonly
Returns the value of attribute msg.
Instance Method Summary collapse
-
#initialize(sym = nil) ⇒ WinX
constructor
A new instance of WinX.
Constructor Details
#initialize(sym = nil) ⇒ WinX
Returns a new instance of WinX.
9 10 11 12 13 14 |
# File 'lib/ragweed/wrap32/winx.rb', line 9 def initialize(sym=nil) @call = sym @code = Ragweed::Wrap32::get_last_error() @msg = "#{(@call ? @call.to_s + ": " : "")}(#{@code}) #{ Ragweed::Wrap32::(@code) }" super @msg end |
Instance Attribute Details
#call ⇒ Object (readonly)
Returns the value of attribute call.
8 9 10 |
# File 'lib/ragweed/wrap32/winx.rb', line 8 def call @call end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
6 7 8 |
# File 'lib/ragweed/wrap32/winx.rb', line 6 def code @code end |
#msg ⇒ Object (readonly)
Returns the value of attribute msg.
7 8 9 |
# File 'lib/ragweed/wrap32/winx.rb', line 7 def msg @msg end |