Method: Efl::Evas::REvasObject#initialize

Defined in:
lib/efl/evas.rb

#initialize(a, *args, &block) ⇒ REvasObject



136
137
138
139
140
141
142
143
144
145
146
147
148
# File 'lib/efl/evas.rb', line 136

def initialize a, *args, &block
    @ptr = (
        case a
        when FFI::Pointer
            a
        when Method
            a.call(*args)
        else
            raise ArgumentError.new "wrong argument #{a.class.name}"
        end
    )
    instance_eval &block if block
end