Class: Session

Inherits:
Object
  • Object
show all
Includes:
Methods
Defined in:
lib/puer/session.rb

Overview

Stores all configurable info on how to translate the xib to JS The session is created from a config file.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Methods

#bool, #class_info_for, #classes, #color, #converter_for, #font, #full_log, #has_errors?, #hex, #ignore_class?, #ignore_classes, #ignore_properties, #ignore_property?, #log, #lookup, #parse_file, #properties, #rgba, #val, #vector

Constructor Details

#initialize(path = nil) ⇒ Session

Returns a new instance of Session.



123
124
125
126
127
128
129
130
131
132
133
134
# File 'lib/puer/session.rb', line 123

def initialize(path=nil)
  @ignore_properties = []
  @ignore_classes = []
  @classes = {}
  @properties = {}
  @log = []
  if (path) then
    File.open path do |file|
      eval file.read
    end 
  end
end

Instance Attribute Details

#outObject (readonly)

Returns the value of attribute out.



136
137
138
# File 'lib/puer/session.rb', line 136

def out
  @out
end