Sha256: bf913f35fc7b5f16681dbfc21cadf3a90a6d5d25af290653e97d9ef36b525ae2

Contents?: true

Size: 1.39 KB

Versions: 3

Compression:

Stored size: 1.39 KB

Contents

module BlocklyInterpreter::CoreBlocks
  extend ActiveSupport::Autoload
  extend BlocklyInterpreter::BlockLibrary

  autoload :ArithmeticOperatorBlock
  autoload :BooleanBlock
  autoload :ComparisonOperatorBlock
  autoload :ForBlock
  autoload :ForEachBlock
  autoload :GetVariableBlock
  autoload :IfBlock
  autoload :ListsCreateEmptyBlock
  autoload :ListsCreateWithBlock
  autoload :ListsGetIndexBlock
  autoload :LogicNegateBlock
  autoload :LogicalOperatorBlock
  autoload :NumberBlock
  autoload :ProcedureBlock
  autoload :ProceduresCallNoReturnBlock
  autoload :ProceduresCallReturnBlock
  autoload :ProceduresDefNoReturnBlock
  autoload :ProceduresDefReturnBlock
  autoload :ProceduresIfReturnBlock
  autoload :RepeatTimesBlock
  autoload :SetVariableBlock
  autoload :TextBlock
  autoload :TextChangeCaseBlock
  autoload :TextJoinBlock

  self.block_classes = [
    ArithmeticOperatorBlock,
    BooleanBlock,
    ComparisonOperatorBlock,
    ForBlock,
    ForEachBlock,
    GetVariableBlock,
    IfBlock,
    ListsCreateEmptyBlock,
    ListsCreateWithBlock,
    ListsGetIndexBlock,
    LogicNegateBlock,
    LogicalOperatorBlock,
    NumberBlock,
    ProceduresCallNoReturnBlock,
    ProceduresCallReturnBlock,
    ProceduresDefNoReturnBlock,
    ProceduresDefReturnBlock,
    ProceduresIfReturnBlock,
    RepeatTimesBlock,
    SetVariableBlock,
    TextBlock,
    TextChangeCaseBlock,
    TextJoinBlock
  ]
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
blockly_interpreter-0.3.0 lib/blockly_interpreter/core_blocks.rb
blockly_interpreter-0.2.1 lib/blockly_interpreter/core_blocks.rb
blockly_interpreter-0.2.0 lib/blockly_interpreter/core_blocks.rb