Class: Steep::Interface::Interface
- Inherits:
-
Object
- Object
- Steep::Interface::Interface
- Defined in:
- lib/steep/interface/interface.rb
Defined Under Namespace
Classes: Combination
Instance Attribute Summary collapse
-
#methods ⇒ Object
readonly
Returns the value of attribute methods.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type:, private:) ⇒ Interface
constructor
A new instance of Interface.
- #private? ⇒ Boolean
- #public? ⇒ Boolean
Constructor Details
#initialize(type:, private:) ⇒ Interface
Returns a new instance of Interface.
76 77 78 79 80 |
# File 'lib/steep/interface/interface.rb', line 76 def initialize(type:, private:) @type = type @private = private @methods = {} end |
Instance Attribute Details
#methods ⇒ Object (readonly)
Returns the value of attribute methods.
74 75 76 |
# File 'lib/steep/interface/interface.rb', line 74 def methods @methods end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
73 74 75 |
# File 'lib/steep/interface/interface.rb', line 73 def type @type end |
Instance Method Details
#private? ⇒ Boolean
82 83 84 |
# File 'lib/steep/interface/interface.rb', line 82 def private? @private end |
#public? ⇒ Boolean
86 87 88 |
# File 'lib/steep/interface/interface.rb', line 86 def public? !private? end |