Class: Ole::Storage::PropertySetSectionProxy
- Inherits:
-
Object
- Object
- Ole::Storage::PropertySetSectionProxy
- Defined in:
- lib/ole/property_set.rb
Instance Attribute Summary collapse
-
#obj ⇒ Object
readonly
Returns the value of attribute obj.
-
#section_num ⇒ Object
readonly
Returns the value of attribute section_num.
Instance Method Summary collapse
-
#initialize(obj, section_num) ⇒ PropertySetSectionProxy
constructor
A new instance of PropertySetSectionProxy.
- #method_missing(name, *args, &block) ⇒ Object
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
#obj ⇒ Object (readonly)
Returns the value of attribute obj.
138 139 140 |
# File 'lib/ole/property_set.rb', line 138 def obj @obj end |
#section_num ⇒ Object (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 |