Sha256: 39eebae158d19b30c52170dc709fd6b66a79196aa94146b545ad0a2fb0dac5a7

Contents?: true

Size: 532 Bytes

Versions: 27

Compression:

Stored size: 532 Bytes

Contents

# -*- coding: utf-8 -*-
module RubyToBlock
  module Block
    class MotionReachWall < Value
      include CharacterOperation

      blocknize '^\s*' + CHAR_RE + 'reach_wall\?\s*$',
                value: true

      def self.process_match_data(md, context)
        md2 = regexp.match(md[type])

        character = get_character(context, md2[1])
        return false if context.receiver != character

        block = new
        context.add_value(block)
        block.character = character

        true
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
smalruby-editor-0.1.10 app/models/concerns/ruby_to_block/block/motion_reach_wall.rb
smalruby-editor-0.1.9-x86-mingw32 app/models/concerns/ruby_to_block/block/motion_reach_wall.rb
smalruby-editor-0.1.9 app/models/concerns/ruby_to_block/block/motion_reach_wall.rb
smalruby-editor-0.1.8-x86-mingw32 app/models/concerns/ruby_to_block/block/motion_reach_wall.rb
smalruby-editor-0.1.8 app/models/concerns/ruby_to_block/block/motion_reach_wall.rb
smalruby-editor-0.1.7-x86-mingw32 app/models/concerns/ruby_to_block/block/motion_reach_wall.rb
smalruby-editor-0.1.7 app/models/concerns/ruby_to_block/block/motion_reach_wall.rb