Class: Briskly::Keyword::FrozenString

Inherits:
Object
  • Object
show all
Extended by:
ClassMethods
Defined in:
lib/briskly/keyword.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Methods included from ClassMethods

get

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_strObject Also known as: to_s



36
37
38
# File 'lib/briskly/keyword.rb', line 36

def to_str
  @value
end