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.
75 76 77 |
# File 'lib/iruby/display.rb', line 75 def initialize(object, ) @object, @options = object, end |
Instance Attribute Details
#object ⇒ Object (readonly)
Returns the value of attribute object.
73 74 75 |
# File 'lib/iruby/display.rb', line 73 def object @object end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
73 74 75 |
# File 'lib/iruby/display.rb', line 73 def @options end |
Class Method Details
.new(obj, options) ⇒ Object
82 83 84 85 86 87 88 89 |
# File 'lib/iruby/display.rb', line 82 def new(obj, ) = { format: } if String === if Representation === obj = obj..merge() obj = obj.object end old_new(obj, ) end |
.old_new ⇒ Object
80 |
# File 'lib/iruby/display.rb', line 80 alias old_new new |