Class: VisualStudio::Helpers::PrettyString
- Inherits:
-
String
- Object
- String
- VisualStudio::Helpers::PrettyString
- Defined in:
- lib/visual_studio/helpers/pretty_string.rb
Instance Attribute Summary collapse
-
#pretty ⇒ Object
readonly
Returns the value of attribute pretty.
Instance Method Summary collapse
-
#initialize(name, opts = {}) ⇒ PrettyString
constructor
A new instance of PrettyString.
Constructor Details
#initialize(name, opts = {}) ⇒ PrettyString
Returns a new instance of PrettyString.
5 6 7 8 |
# File 'lib/visual_studio/helpers/pretty_string.rb', line 5 def initialize(name, opts={}) super(name) @pretty = opts[:pretty] if opts.include? :pretty end |
Instance Attribute Details
#pretty ⇒ Object (readonly)
Returns the value of attribute pretty.
4 5 6 |
# File 'lib/visual_studio/helpers/pretty_string.rb', line 4 def pretty @pretty end |