class Docks::Containers::Klass
Public: a container for Class symbols.
Public Class Methods
type()
click to toggle source
Public: the type of symbols that should be encapsulated by this container. This is compared against a symbol’s ‘symbol_type` to determine which container to use.
Returns the type String.
# File lib/docks/containers/class_container.rb, line 15 def self.type; Docks::Types::Symbol::CLASS end
Public Instance Methods
add_member(symbol)
click to toggle source
Calls superclass method
# File lib/docks/containers/class_container.rb, line 32 def add_member(symbol) static = symbol.static? super symbol.static = static end
instance_members()
click to toggle source
# File lib/docks/containers/class_container.rb, line 29 def instance_members; instance_methods + instance_properties end
instance_methods()
click to toggle source
# File lib/docks/containers/class_container.rb, line 21 def instance_methods; methods.reject { |meth| meth.static? } end
instance_properties()
click to toggle source
# File lib/docks/containers/class_container.rb, line 27 def instance_properties; properties.reject { |prop| prop.static? } end
private_methods()
click to toggle source
# File lib/docks/containers/class_container.rb, line 18 def private_methods; methods.select { |meth| meth.private? } end
private_properties()
click to toggle source
# File lib/docks/containers/class_container.rb, line 24 def private_properties; properties.select { |prop| prop.private? } end
public_methods()
click to toggle source
# File lib/docks/containers/class_container.rb, line 17 def public_methods; methods.select { |meth| meth.public? } end
public_properties()
click to toggle source
# File lib/docks/containers/class_container.rb, line 23 def public_properties; properties.select { |prop| prop.public? } end
static_members()
click to toggle source
# File lib/docks/containers/class_container.rb, line 30 def static_members; static_methods + static_properties end
static_methods()
click to toggle source
# File lib/docks/containers/class_container.rb, line 20 def static_methods; methods.select { |meth| meth.static? } end
static_properties()
click to toggle source
# File lib/docks/containers/class_container.rb, line 26 def static_properties; properties.select { |prop| prop.static? } end