Class: Humanized::Compiled

Inherits:
Proc
  • Object
show all
Defined in:
lib/humanized/compiler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(str) ⇒ Compiled

Returns a new instance of Compiled.



24
25
26
27
28
# File 'lib/humanized/compiler.rb', line 24

def initialize(str)
  @str = str
  super()
  return self
end

Instance Attribute Details

#strObject

Returns the value of attribute str.



22
23
24
# File 'lib/humanized/compiler.rb', line 22

def str
  @str
end

Instance Method Details

#to_sObject



30
31
32
# File 'lib/humanized/compiler.rb', line 30

def to_s
  @str
end