Class: IRuby::Display::Representation
- Inherits:
-
Object
- Object
- IRuby::Display::Representation
- Defined in:
- lib/iruby/display.rb
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Returns the value of attribute object.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(object, options) ⇒ Representation
constructor
A new instance of Representation.
Constructor Details
#initialize(object, options) ⇒ Representation
Returns a new instance of Representation.
181 182 183 184 |
# File 'lib/iruby/display.rb', line 181 def initialize(object, ) @object = object @options = end |
Instance Attribute Details
#object ⇒ Object (readonly)
Returns the value of attribute object.
179 180 181 |
# File 'lib/iruby/display.rb', line 179 def object @object end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
179 180 181 |
# File 'lib/iruby/display.rb', line 179 def @options end |
Class Method Details
.new(obj, options) ⇒ Object
189 190 191 192 193 194 195 196 |
# File 'lib/iruby/display.rb', line 189 def new(obj, ) = { format: } if String === if Representation === obj = obj..merge() obj = obj.object end old_new(obj, ) end |
.old_new ⇒ Object
187 |
# File 'lib/iruby/display.rb', line 187 alias old_new new |