Class Pry::CodeFile
In: lib/pry/code/code_file.rb
Parent: Object

Methods

code   new  

Constants

DEFAULT_EXT = '.rb'
EXTENSIONS = { %w(.py) => :python, %w(.js) => :javascript, %w(.css) => :css, %w(.xml) => :xml, %w(.php) => :php, %w(.html) => :html, %w(.diff) => :diff, %w(.java) => :java, %w(.json) => :json, %w(.c .h) => :c, %w(.rhtml) => :rhtml, %w(.yaml .yml) => :yaml, %w(.cpp .hpp .cc .h cxx) => :cpp, %w(.rb .ru .irbrc .gemspec .pryrc) => :ruby, }   List of all supported languages. @return [Hash]

Attributes

code_type  [R]  @return [Symbol] The type of code stored in this wrapper.

Public Class methods

@param [String] filename The name of a file with code to be detected @param [Symbol] code_type The type of code the `filename` contains

Public Instance methods

@return [String] The code contained in the current `@filename`.

[Validate]