Class: RubyInterface::InterfaceClass

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_interface.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(owner) ⇒ InterfaceClass



57
58
59
# File 'lib/ruby_interface.rb', line 57

def initialize(owner)
  @owner = owner
end

Instance Attribute Details

#ownerObject

Returns the value of attribute owner.



56
57
58
# File 'lib/ruby_interface.rb', line 56

def owner
  @owner
end

Class Method Details

.interfaced(&block) ⇒ Object



62
63
64
65
66
67
68
# File 'lib/ruby_interface.rb', line 62

def interfaced(&block)
  if block_given?
    @_interfaced_block = block
  else
    @_interfaced_block
  end
end