Class: Ole::Storage::PropertySetSectionProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/ole/property_set.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(obj, section_num) ⇒ PropertySetSectionProxy

Returns a new instance of PropertySetSectionProxy.



139
140
141
# File 'lib/ole/property_set.rb', line 139

def initialize obj, section_num
	@obj, @section_num = obj, section_num
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args, &block) ⇒ Object



143
144
145
146
147
148
# File 'lib/ole/property_set.rb', line 143

def method_missing name, *args, &block
	obj.open do |io|
		section = Types::PropertySet.new(io).sections[section_num]
		section.send name, *args, &block
	end
end

Instance Attribute Details

#objObject (readonly)

Returns the value of attribute obj.



138
139
140
# File 'lib/ole/property_set.rb', line 138

def obj
  @obj
end

#section_numObject (readonly)

Returns the value of attribute section_num.



138
139
140
# File 'lib/ole/property_set.rb', line 138

def section_num
  @section_num
end