Sha256: cf501f23c8554ec3b1bf6aa76cf9672f2df3df2282d53869b45b24aa8e6b4a26

Contents?: true

Size: 298 Bytes

Versions: 69

Compression:

Stored size: 298 Bytes

Contents

# -*- coding: utf-8 -*-
module RubyToBlock
  module Block
    # Null(何もない)ブロックを表現する
    class Null < Base
      def to_xml(parent)
        return nil unless @sibling

        @sibling.to_xml(parent)
      end

      def null?
        !@sibling
      end
    end
  end
end

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
smalruby-editor-0.4.1-x86-mingw32 app/models/concerns/ruby_to_block/block/null.rb
smalruby-editor-0.4.2-x86-mingw32 app/models/concerns/ruby_to_block/block/null.rb
smalruby-editor-0.4.2 app/models/concerns/ruby_to_block/block/null.rb
smalruby-editor-0.4.1 app/models/concerns/ruby_to_block/block/null.rb
smalruby-editor-0.4.0-x86-mingw32 app/models/concerns/ruby_to_block/block/null.rb
smalruby-editor-0.4.0 app/models/concerns/ruby_to_block/block/null.rb
smalruby-editor-0.3.5-x86-mingw32 app/models/concerns/ruby_to_block/block/null.rb
smalruby-editor-0.3.5 app/models/concerns/ruby_to_block/block/null.rb
smalruby-editor-0.3.4-x86-mingw32 app/models/concerns/ruby_to_block/block/null.rb
smalruby-editor-0.3.4 app/models/concerns/ruby_to_block/block/null.rb
smalruby-editor-0.3.3-x86-mingw32 app/models/concerns/ruby_to_block/block/null.rb
smalruby-editor-0.3.3 app/models/concerns/ruby_to_block/block/null.rb
smalruby-editor-0.3.2-x86-mingw32 app/models/concerns/ruby_to_block/block/null.rb
smalruby-editor-0.3.2 app/models/concerns/ruby_to_block/block/null.rb
smalruby-editor-0.3.1-x86-mingw32 app/models/concerns/ruby_to_block/block/null.rb
smalruby-editor-0.3.1 app/models/concerns/ruby_to_block/block/null.rb
smalruby-editor-0.3.0-x86-mingw32 app/models/concerns/ruby_to_block/block/null.rb
smalruby-editor-0.3.0 app/models/concerns/ruby_to_block/block/null.rb
smalruby-editor-0.2.7-x86-mingw32 app/models/concerns/ruby_to_block/block/null.rb
smalruby-editor-0.2.7 app/models/concerns/ruby_to_block/block/null.rb