Class: Linguify::Replacement

Inherits:
Object
  • Object
show all
Defined in:
lib/linguify/reduction.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#sexpObject (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

Returns:

  • (Boolean)


34
35
36
# File 'lib/linguify/reduction.rb', line 34

def inline?
  @inline
end