Module: Efl::Elm::Helper
- Included in:
- ElmActionSlider, ElmBg, ElmBox, ElmBubble, ElmButton, ElmCalendar, ElmCheck, ElmClock, ElmColorSelector, ElmConform, ElmCtxPopup, ElmDatetime, ElmDaySelector, ElmDiskSelector, ElmEntry, ElmFileSelector, ElmFileSelectorButton, ElmFileSelectorEntry, ElmFlip, ElmFlipSelector, ElmFrame, ElmGLView, ElmGenGrid, ElmGenList, ElmGestureLayer, ElmGrid, ElmHover, ElmIcon, ElmImage, ElmIndex, ElmInwin, ElmLabel, ElmLayout, ElmList, ElmMapBuf, ElmMenu, ElmMultiButtonEntry, ElmNaviFrame, ElmNotify, ElmPanel, ElmPanes, ElmPhoto, ElmPhotoCam, ElmPlayer, ElmPlug, ElmPopup, ElmProgressBar, ElmRadio, ElmScroller, ElmSeparator, ElmSlider, ElmSlideshow, ElmSpinner, ElmTable, ElmThumb, ElmToolbar, ElmTransit, ElmTransitEffect, ElmVideo, ElmWeb
- Defined in:
- lib/efl/elm/elm_object.rb
Class Method Summary collapse
Class Method Details
.included(kls) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/efl/elm/elm_object.rb', line 12 def self.included kls def kls.constructor meth self.class_eval <<-EOF def initialize ptr, &block if ptr.is_a? FFI::Pointer super ptr, &block else super Native.method(:#{meth}), ptr, &block end end EOF end end |