Class: Steep::Interface::Interface

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

Defined Under Namespace

Classes: Combination

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#methodsObject (readonly)

Returns the value of attribute methods.



74
75
76
# File 'lib/steep/interface/interface.rb', line 74

def methods
  @methods
end

#typeObject (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

Returns:

  • (Boolean)


82
83
84
# File 'lib/steep/interface/interface.rb', line 82

def private?
  @private
end

#public?Boolean

Returns:

  • (Boolean)


86
87
88
# File 'lib/steep/interface/interface.rb', line 86

def public?
  !private?
end