Class: ToFactory::Parsing::OldSyntax
- Defined in:
- lib/to_factory/parsing/old_syntax.rb
Instance Attribute Summary
Attributes inherited from Syntax
Instance Method Summary collapse
Methods inherited from Syntax
#factories, #factories_sexp, #initialize, #multiple_factories?, #name_from, #parse
Constructor Details
This class inherits a constructor from ToFactory::Parsing::Syntax
Instance Method Details
#header? ⇒ Boolean
4 5 6 |
# File 'lib/to_factory/parsing/old_syntax.rb', line 4 def header? false end |
#parent_from(x) ⇒ Object
8 9 10 |
# File 'lib/to_factory/parsing/old_syntax.rb', line 8 def parent_from(x) x[1][-1][-1][-1] rescue name_from(x) end |