Class: Whisperer::DefaultValue
- Inherits:
-
Object
- Object
- Whisperer::DefaultValue
- Defined in:
- lib/whisperer/record/default_value.rb
Instance Method Summary collapse
-
#initialize(val) ⇒ DefaultValue
constructor
A new instance of DefaultValue.
- #is_default ⇒ Object
- #to_default ⇒ Object
- #to_sym ⇒ Object
Constructor Details
#initialize(val) ⇒ DefaultValue
Returns a new instance of DefaultValue.
3 4 5 |
# File 'lib/whisperer/record/default_value.rb', line 3 def initialize(val) @val = val end |
Instance Method Details
#is_default ⇒ Object
7 |
# File 'lib/whisperer/record/default_value.rb', line 7 def is_default; true; end |
#to_default ⇒ Object
11 |
# File 'lib/whisperer/record/default_value.rb', line 11 def to_default; @val; end |
#to_sym ⇒ Object
9 |
# File 'lib/whisperer/record/default_value.rb', line 9 def to_sym; @val; end |