Class: Temill

Inherits:
Object
  • Object
show all
Extended by:
TemillImpl
Includes:
TemillImpl
Defined in:
lib/temill/core.rb,
lib/temill/parser.rb,
lib/temill/emitter.rb,
lib/temill/version.rb

Overview

most features are implemented in TemillImpl

See Also:

Defined Under Namespace

Modules: Emitters, ParserHack, ParserUtils, RaccHack, TemillImpl Classes: ParserResult, Ruby23Parser, SourceFile

Constant Summary collapse

EVAL_PATH_PREFIX =
'(temill eval)/'
DefaultOptions =
{
  tabstop: 4,
  default_indent: '  ',
  compact: false,
  inspect: :pretty_inspect
}
VERSION =
"0.1.1"

Instance Method Summary collapse

Methods included from TemillImpl

_initialize, emit, emit_to_directory, emit_to_string, eval, execute_emitter, reset, set_options, show

Constructor Details

#initialize(**opts) ⇒ Temill

Returns a new instance of Temill.

Parameters:

  • opts (Hash)

Options Hash (**opts):

  • :default_indent (String)

    indent string used when indent guess fails (defaults to ‘ ’)

  • :tabstop (Integer)

    the number of spaces a tab counts for. make sense only if both spaces and tabs are used in a line (defaults to 4)

  • :compact (bool)

    if true, show only lines that #show methods called are involved (defaults to false)

  • :inspect (Symbol, #call)

    method to convert obj into String (defaults to :pretty_inspect)



19
20
21
# File 'lib/temill/core.rb', line 19

def initialize(**opts)
  _initialize(**opts)
end