Class: TestParser::Snippet
- Inherits:
-
Object
- Object
- TestParser::Snippet
- Defined in:
- lib/test_parser/snippet.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#sexp ⇒ Object
readonly
Returns the value of attribute sexp.
Instance Method Summary collapse
- #get_block ⇒ Object
-
#initialize(sexp) ⇒ Snippet
constructor
A new instance of Snippet.
- #to_code ⇒ Object
Constructor Details
#initialize(sexp) ⇒ Snippet
Returns a new instance of Snippet.
8 9 10 11 |
# File 'lib/test_parser/snippet.rb', line 8 def initialize(sexp) raise ArgumentError unless sexp @sexp = sexp end |
Instance Attribute Details
#sexp ⇒ Object (readonly)
Returns the value of attribute sexp.
6 7 8 |
# File 'lib/test_parser/snippet.rb', line 6 def sexp @sexp end |