Class: Bparity::Boundary::External

Inherits:
Struct
  • Object
show all
Defined in:
lib/bparity/boundary.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_namesObject

Returns the value of attribute method_names

Returns:

  • (Object)

    the current value of method_names



31
32
33
# File 'lib/bparity/boundary.rb', line 31

def method_names
  @method_names
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of 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