class Dramaturg::Value::Masked

Attributes

display[W]

Public Class Methods

new(value) click to toggle source
Calls superclass method Dramaturg::Value::Base::new
# File lib/dramaturg/value/masked.rb, line 7
def initialize(value)
  @display = '$SECRET'
  super(value)
end

Public Instance Methods

for_prompt() click to toggle source
# File lib/dramaturg/value/masked.rb, line 12
def for_prompt
  @display
end
inspect() click to toggle source
# File lib/dramaturg/value/masked.rb, line 20
def inspect
  "{#@display = #@value}"
end
to_s() click to toggle source
# File lib/dramaturg/value/masked.rb, line 16
def to_s
  "{#@display}"
end