Class: Bparity::Boundary::External
- Inherits:
-
Struct
- Object
- Struct
- Bparity::Boundary::External
- Defined in:
- lib/bparity/boundary.rb
Instance Attribute Summary collapse
-
#method_names ⇒ Object
Returns the value of attribute method_names.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name:) ⇒ External
constructor
A new instance of External.
- #methods(*names) ⇒ Object
Constructor Details
#initialize(name:) ⇒ External
Returns a new instance of External.
32 33 34 |
# File 'lib/bparity/boundary.rb', line 32 def initialize(name:, **) super(name:, method_names: []) end |
Instance Attribute Details
#method_names ⇒ Object
Returns the value of attribute method_names
31 32 33 |
# File 'lib/bparity/boundary.rb', line 31 def method_names @method_names end |
#name ⇒ Object
Returns the value of attribute name
31 32 33 |
# File 'lib/bparity/boundary.rb', line 31 def name @name end |
Instance Method Details
#methods(*names) ⇒ Object
36 37 38 |
# File 'lib/bparity/boundary.rb', line 36 def methods(*names) self.method_names = names.map(&:to_sym) end |