Sha256: 0e7351d5e5332c9f077ebc256c1525fdc23df47dfc3fb1a840d8f20aeb3941a1

Contents?: true

Size: 321 Bytes

Versions: 20

Compression:

Stored size: 321 Bytes

Contents

module StartingBlocks

  module Displayable
    module ClassMethods
      def display message
        puts message if @verbose
      end
    end

    module InstanceMethods
    end

    def self.included(receiver)
      receiver.extend         ClassMethods
      receiver.send :include, InstanceMethods
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
starting_blocks-0.0.28 lib/starting_blocks/displayable.rb
starting_blocks-0.0.27 lib/starting_blocks/displayable.rb
starting_blocks-0.0.26 lib/starting_blocks/displayable.rb
starting_blocks-0.0.25 lib/starting_blocks/displayable.rb
starting_blocks-0.0.24 lib/starting_blocks/displayable.rb
starting_blocks-0.0.23 lib/starting_blocks/displayable.rb
starting_blocks-0.0.22 lib/starting_blocks/displayable.rb
starting_blocks-0.0.21 lib/starting_blocks/displayable.rb
starting_blocks-0.0.20 lib/starting_blocks/displayable.rb
starting_blocks-0.0.19 lib/starting_blocks/displayable.rb
starting_blocks-0.0.18 lib/starting_blocks/displayable.rb
starting_blocks-0.0.17 lib/starting_blocks/displayable.rb
starting_blocks-0.0.16 lib/starting_blocks/displayable.rb
starting_blocks-0.0.15 lib/starting_blocks/displayable.rb
starting_blocks-0.0.14 lib/starting_blocks/displayable.rb
starting_blocks-0.0.13 lib/starting_blocks/displayable.rb
starting_blocks-0.0.12 lib/starting_blocks/displayable.rb
starting_blocks-0.0.11 lib/starting_blocks/displayable.rb
starting_blocks-0.0.10 lib/starting_blocks/displayable.rb
starting_blocks-0.0.9 lib/starting_blocks/displayable.rb