Class: Unodos::NamedBase

Inherits:
Object
  • Object
show all
Defined in:
lib/unodos/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, &block) ⇒ NamedBase

Returns a new instance of NamedBase.



5
6
7
8
# File 'lib/unodos/base.rb', line 5

def initialize(name, &block)
  @name = name
  @proc = block
end

Instance Attribute Details

#nameObject (readonly) Also known as: to_s, inspect

Returns the value of attribute name.



3
4
5
# File 'lib/unodos/base.rb', line 3

def name
  @name
end

#procObject (readonly)

Returns the value of attribute proc.



3
4
5
# File 'lib/unodos/base.rb', line 3

def proc
  @proc
end

Instance Method Details

#differential_levelObject



10
11
12
# File 'lib/unodos/base.rb', line 10

def differential_level
  0
end