Class: Briskly::Keyword::FrozenString
- Inherits:
-
Object
- Object
- Briskly::Keyword::FrozenString
- Extended by:
- ClassMethods
- Defined in:
- lib/briskly/keyword.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#initialize(string) ⇒ FrozenString
constructor
A new instance of FrozenString.
- #to_str ⇒ Object (also: #to_s)
Methods included from ClassMethods
Constructor Details
#initialize(string) ⇒ FrozenString
Returns a new instance of FrozenString.
32 33 34 |
# File 'lib/briskly/keyword.rb', line 32 def initialize(string) @value = string end |
Instance Method Details
#to_str ⇒ Object Also known as: to_s
36 37 38 |
# File 'lib/briskly/keyword.rb', line 36 def to_str @value end |