Sha256: 3bc8bf24e1714839b1f71939db785cf8f3f425a84bc3c0cca6c860f614e5f124

Contents?: true

Size: 320 Bytes

Versions: 10

Compression:

Stored size: 320 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

10 entries across 10 versions & 1 rubygems

Version Path
starting_blocks-0.5.0 lib/starting_blocks/displayable.rb
starting_blocks-0.4.0 lib/starting_blocks/displayable.rb
starting_blocks-0.3.1 lib/starting_blocks/displayable.rb
starting_blocks-0.2.1 lib/starting_blocks/displayable.rb
starting_blocks-0.1.1 lib/starting_blocks/displayable.rb
starting_blocks-0.1.0 lib/starting_blocks/displayable.rb
starting_blocks-0.0.32 lib/starting_blocks/displayable.rb
starting_blocks-0.0.31 lib/starting_blocks/displayable.rb
starting_blocks-0.0.30 lib/starting_blocks/displayable.rb
starting_blocks-0.0.29 lib/starting_blocks/displayable.rb