Sha256: 3457e8b1cacf15cfcc05924e9c087475cc925b764534f40d17e9b8b9444717fe

Contents?: true

Size: 894 Bytes

Versions: 28

Compression:

Stored size: 894 Bytes

Contents

module Redcar
  class Runnables

    class HelpItem
      include Redcar::Tree::Mirror::NodeMirror

      def text
        "No runnables (HELP)"
      end
    end

    class Runnable
      include Redcar::Tree::Mirror::NodeMirror

      def initialize(name,path,info)
        @name = name
        @info = info
        @path = path
      end

      def text
        @name
      end

      def path
        @path
      end

      def tooltip_text
        @info["description"] || ""
      end

      def leaf?
        @info["command"]
      end

      def icon
        File.join(Redcar.icons_directory, "cog.png")
      end

      def children
        []
      end

      def command
        @info["command"]
      end

      def out?
        @info["output"]
      end

      def output
        if out?
          @info["output"]
        else
          "tab"
        end
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
redcar-0.13 plugins/runnables/lib/runnables/tree_mirror/nodes/runnable.rb
redcar-dev-0.13.5dev plugins/runnables/lib/runnables/tree_mirror/nodes/runnable.rb
redcar-dev-0.13.4dev plugins/runnables/lib/runnables/tree_mirror/nodes/runnable.rb
redcar-dev-0.13.3dev plugins/runnables/lib/runnables/tree_mirror/nodes/runnable.rb
redcar-dev-0.13.2dev plugins/runnables/lib/runnables/tree_mirror/nodes/runnable.rb
redcar-dev-0.13.1dev plugins/runnables/lib/runnables/tree_mirror/nodes/runnable.rb
redcar-0.12.1 plugins/runnables/lib/runnables/tree_mirror/nodes/runnable.rb
redcar-dev-0.13.0dev plugins/runnables/lib/runnables/tree_mirror/nodes/runnable.rb
redcar-0.12 plugins/runnables/lib/runnables/tree_mirror/nodes/runnable.rb
redcar-dev-0.12.27dev plugins/runnables/lib/runnables/tree_mirror/nodes/runnable.rb
redcar-dev-0.12.26dev plugins/runnables/lib/runnables/tree_mirror/nodes/runnable.rb
redcar-dev-0.12.25dev plugins/runnables/lib/runnables/tree_mirror/nodes/runnable.rb
redcar-dev-0.12.24dev plugins/runnables/lib/runnables/tree_mirror/nodes/runnable.rb
redcar-dev-0.12.23dev plugins/runnables/lib/runnables/tree_mirror/nodes/runnable.rb
redcar-dev-0.12.22dev plugins/runnables/lib/runnables/tree_mirror/nodes/runnable.rb
redcar-dev-0.12.21dev plugins/runnables/lib/runnables/tree_mirror/nodes/runnable.rb
redcar-dev-0.12.20dev plugins/runnables/lib/runnables/tree_mirror/nodes/runnable.rb
redcar-dev-0.12.19dev plugins/runnables/lib/runnables/tree_mirror/nodes/runnable.rb
redcar-dev-0.12.18dev plugins/runnables/lib/runnables/tree_mirror/nodes/runnable.rb
redcar-dev-0.12.17dev plugins/runnables/lib/runnables/tree_mirror/nodes/runnable.rb