Module: Htmless::DynamicClasses::Describable::ClassMethods

Defined in:
lib/htmless/dynamic_classes.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) _description=(description)

sets +description+

Parameters:

  • description (String)


56
57
58
# File 'lib/htmless/dynamic_classes.rb', line 56

def _description=(description)
  @_description = description
end

- (Object) to_s



60
61
62
# File 'lib/htmless/dynamic_classes.rb', line 60

def to_s
  super.gsub(/>$/, "(#{@_description})>")
end