Sha256: 0d24d589f15421b344cbc5f1ec24ee702f3e73470f833a49ce75b934a732a6fc

Contents?: true

Size: 339 Bytes

Versions: 8

Compression:

Stored size: 339 Bytes

Contents

module Phenomenal::DSL
  def self.define_viewers(klass)
    klass.class_eval do
      # Graphical
      def phen_graphical_view(file="view.png")
        Phenomenal::Viewer::Graphical.new(file).generate
      end
      
      #Textual
      def phen_textual_view
        Phenomenal::Viewer::Textual.new.generate
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
phenomenal-1.2.4 lib/phenomenal/viewer/dsl.rb
phenomenal-1.2.3 lib/phenomenal/viewer/dsl.rb
phenomenal-1.2.2 lib/phenomenal/viewer/dsl.rb
phenomenal-1.2.1 lib/phenomenal/viewer/dsl.rb
phenomenal-1.1.1 lib/phenomenal/viewer/dsl.rb
phenomenal-1.1.0 lib/phenomenal/viewer/dsl.rb
phenomenal-1.0.1 lib/phenomenal/viewer/dsl.rb
phenomenal-1.0.0 lib/phenomenal/viewer/dsl.rb