Skip to content

Commit

Permalink
Realize the Workspace.to_Component was wrong on ruby's side too
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarrec committed Oct 12, 2023
1 parent 725c6c9 commit c4768bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/model/ModelCore.i
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
%init %{
rb_eval_string("OpenStudio::Workspace.class_eval { define_method(:to_Model) { OpenStudio::Model::toModel(self); } }");
rb_eval_string("OpenStudio::Workspace.class_eval { define_method(:to_OptionalModel) { OpenStudio::Model::toOptionalModel(self); } }");
rb_eval_string("OpenStudio::Workspace.class_eval { define_method(:to_Component) { OpenStudio::Component::toComponent(self); } }");
rb_eval_string("OpenStudio::Workspace.class_eval { define_method(:to_OptionalComponent) { OpenStudio::Component::toOptionalComponent(self); } }");
rb_eval_string("OpenStudio::Workspace.class_eval { define_method(:to_Component) { OpenStudio::Model::toComponent(self); } }");
rb_eval_string("OpenStudio::Workspace.class_eval { define_method(:to_OptionalComponent) { OpenStudio::Model::toOptionalComponent(self); } }");
%}

#elif defined SWIGCSHARP
Expand Down

0 comments on commit c4768bc

Please sign in to comment.