Class: RubyInterface::InterfaceClass
- Inherits:
-
Object
- Object
- RubyInterface::InterfaceClass
- Defined in:
- lib/ruby_interface.rb
Instance Attribute Summary collapse
-
#owner ⇒ Object
Returns the value of attribute owner.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(owner) ⇒ InterfaceClass
constructor
A new instance of InterfaceClass.
Constructor Details
#initialize(owner) ⇒ InterfaceClass
57 58 59 |
# File 'lib/ruby_interface.rb', line 57 def initialize(owner) @owner = owner end |
Instance Attribute Details
#owner ⇒ Object
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 |