Class: Julewire::Core::Sentinel
- Inherits:
-
Object
- Object
- Julewire::Core::Sentinel
- Defined in:
- lib/julewire/core/sentinel.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ Sentinel
constructor
A new instance of Sentinel.
- #inspect ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(name) ⇒ Sentinel
Returns a new instance of Sentinel.
8 9 10 11 |
# File 'lib/julewire/core/sentinel.rb', line 8 def initialize(name) @name = Core.normalize_name(name, name: :sentinel) freeze end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/julewire/core/sentinel.rb', line 6 def name @name end |
Instance Method Details
#inspect ⇒ Object
13 |
# File 'lib/julewire/core/sentinel.rb', line 13 def inspect = "#<#{self.class} #{@name}>" |
#to_s ⇒ Object
15 |
# File 'lib/julewire/core/sentinel.rb', line 15 def to_s = inspect |