adhyapranata/crane

View on GitHub
src/Expression.js

Summary

Maintainability
A
0 mins
Test Coverage
export default class Expression {
  /**
   *
   * @param value
   */
  constructor (value) {
    this.value = value
  }

  /**
   *
   * @returns {*}
   */
  getValue () {
    return this.value
  }

  /**
   * Get the value of the expression.
   *
   * @return string
   */
  toString() {
    return this.getValue().toString()
  }
}