Class: Linguify::Replacement
- Inherits:
-
Object
- Object
- Linguify::Replacement
- Defined in:
- lib/linguify/reduction.rb
Instance Attribute Summary collapse
-
#sexp ⇒ Object
readonly
Returns the value of attribute sexp.
Instance Method Summary collapse
-
#initialize(args) ⇒ Replacement
constructor
A new instance of Replacement.
- #inline? ⇒ Boolean
Constructor Details
#initialize(args) ⇒ Replacement
Returns a new instance of Replacement.
29 30 31 32 |
# File 'lib/linguify/reduction.rb', line 29 def initialize args @sexp = args[:sexp] @inline = args[:inline] || false end |
Instance Attribute Details
#sexp ⇒ Object (readonly)
Returns the value of attribute sexp.
27 28 29 |
# File 'lib/linguify/reduction.rb', line 27 def sexp @sexp end |
Instance Method Details
#inline? ⇒ Boolean
34 35 36 |
# File 'lib/linguify/reduction.rb', line 34 def inline? @inline end |