Class: Wx::SF::ShapeCanvas::Version
- Inherits:
-
Object
- Object
- Wx::SF::ShapeCanvas::Version
- Includes:
- FIRM::Serializable
- Defined in:
- lib/wx/shapes/shape_canvas.rb
Overview
Auxiliary serializable class encapsulating canvas version info and providing version check on loading.
Defined Under Namespace
Classes: Exception, VersionInfo
Instance Attribute Summary collapse
-
#version_info ⇒ Object
readonly
Returns the value of attribute version_info.
Instance Method Summary collapse
-
#initialize ⇒ Version
constructor
A new instance of Version.
Constructor Details
#initialize ⇒ Version
Returns a new instance of Version.
344 345 346 347 |
# File 'lib/wx/shapes/shape_canvas.rb', line 344 def initialize # get version numbers as [major, minor, release] @version_info = VersionInfo.new(*Wx::SF::VERSION.split(/\D/).shift(3).collect { |s| s.to_i }) end |
Instance Attribute Details
#version_info ⇒ Object (readonly)
Returns the value of attribute version_info.
349 350 351 |
# File 'lib/wx/shapes/shape_canvas.rb', line 349 def version_info @version_info end |