Class: Wx::SF::ShapeCanvas::Version

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeVersion

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_infoObject (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