Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/humanized/core_ext/object.rb
Instance Method Summary collapse
Instance Method Details
#_(*args, &block) ⇒ Object
27 28 29 |
# File 'lib/humanized/core_ext/object.rb', line 27 def _(*args,&block) self.humanization_key._(*args,&block) end |
#humanization_key ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'lib/humanized/core_ext/object.rb', line 19 def humanization_key if self.frozen? or !self.dup? i = self else i = self.dup.freeze end self.class.humanization_key.optionally(:instance).with_variables({:self => i }) end |