Class: Goling::Replacement
- Inherits:
-
Object
- Object
- Goling::Replacement
- Defined in:
- lib/goling/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.
8 9 10 11 |
# File 'lib/goling/reduction.rb', line 8 def initialize args @sexp = args[:sexp] @inline = args[:inline] || false end |
Instance Attribute Details
#sexp ⇒ Object (readonly)
Returns the value of attribute sexp.
6 7 8 |
# File 'lib/goling/reduction.rb', line 6 def sexp @sexp end |
Instance Method Details
#inline? ⇒ Boolean
13 14 15 |
# File 'lib/goling/reduction.rb', line 13 def inline? @inline end |