Class: PrettyPrint::Group
Instance Attribute Summary collapse
-
#breakables ⇒ Object
readonly
Returns the value of attribute breakables.
-
#depth ⇒ Object
readonly
Returns the value of attribute depth.
Instance Method Summary collapse
- #break ⇒ Object
- #break? ⇒ Boolean
- #first? ⇒ Boolean
-
#initialize(depth) ⇒ Group
constructor
A new instance of Group.
Constructor Details
#initialize(depth) ⇒ Group
Returns a new instance of Group.
330 331 332 333 334 |
# File 'lib/extensions/mspec/mspec/pp.rb', line 330 def initialize(depth) @depth = depth @breakables = [] @break = false end |
Instance Attribute Details
#breakables ⇒ Object (readonly)
Returns the value of attribute breakables.
335 336 337 |
# File 'lib/extensions/mspec/mspec/pp.rb', line 335 def breakables @breakables end |
#depth ⇒ Object (readonly)
Returns the value of attribute depth.
335 336 337 |
# File 'lib/extensions/mspec/mspec/pp.rb', line 335 def depth @depth end |
Instance Method Details
#break ⇒ Object
337 338 339 |
# File 'lib/extensions/mspec/mspec/pp.rb', line 337 def break @break = true end |
#break? ⇒ Boolean
341 342 343 |
# File 'lib/extensions/mspec/mspec/pp.rb', line 341 def break? @break end |
#first? ⇒ Boolean
345 346 347 348 349 350 351 352 |
# File 'lib/extensions/mspec/mspec/pp.rb', line 345 def first? if defined? @first false else @first = false true end end |