Class: VisualStudio::Helpers::PrettyString

Inherits:
String
  • Object
show all
Defined in:
lib/visual_studio/helpers/pretty_string.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#prettyObject (readonly)

Returns the value of attribute pretty.



4
5
6
# File 'lib/visual_studio/helpers/pretty_string.rb', line 4

def pretty
  @pretty
end