Class: Dramaturg::Value::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/dramaturg/value/base.rb

Direct Known Subclasses

Fixed, Masked, OrDefault, Silent

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ Base



4
5
6
# File 'lib/dramaturg/value/base.rb', line 4

def initialize(value)
  @value = value
end

Instance Method Details

#for_debug_promptObject



12
13
14
# File 'lib/dramaturg/value/base.rb', line 12

def for_debug_prompt
  @value
end

#for_promptObject



8
9
10
# File 'lib/dramaturg/value/base.rb', line 8

def for_prompt
  @value
end

#for_runObject



16
17
18
# File 'lib/dramaturg/value/base.rb', line 16

def for_run
  @value
end

#to_sObject

should match parser input



26
27
28
# File 'lib/dramaturg/value/base.rb', line 26

def to_s
  for_prompt
end