Module: Glimmer::DSL::Libui::FileExpression
- Included in:
- OpenFileExpression, OpenFolderExpression, SaveFileExpression
- Defined in:
- lib/glimmer/dsl/libui/file_expression.rb
Instance Method Summary collapse
Instance Method Details
#interpret(parent, keyword, *args, &block) ⇒ Object
28 29 30 31 32 33 |
# File 'lib/glimmer/dsl/libui/file_expression.rb', line 28 def interpret(parent, keyword, *args, &block) window = args.empty? ? Glimmer::LibUI::ControlProxy.main_window_proxy : args.first window = window.libui if window.respond_to?(:libui) file_pointer = ::LibUI.send(self.class.name.underscore.split('::').last.sub(/_expression$/, ''), window) file_pointer.to_s unless file_pointer.null? end |